using System;
public class Program
{
public static void Main()
for (int i = 7; i <= 997; i += 10)
Console.WriteLine(i);
}