using System;
public class Program
{
public static void Main()
for (int i=51; i>1; i--)
if (i%3==0)
Console.Write(i+ " ");
}