using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace sekainonantoka { class Program { static void Main(string[] args) { var str0 = Console.ReadLine().Split(' '); var start = int.Parse(str0[0]); var end = int.Parse(str0[1]); for (int i = start; i <= end; i++) { if ((i % 3) == 0||i.ToString().Contains("3")) { Console.WriteLine(i); } } } } }