using System;
public class Program
{
public static void Main()
int x =8;
while ( x< 62)
{ if (x%2==0)
{ Console.WriteLine(x);
x+=7;
}
else
x-=1;