using System;
public class Program
{
public static void Main()
for (int i = 1; i < 1000; i++)
if (i % 10 == 6)
Console.Write("{0} ", i);
}