using System; using System.Linq; namespace No207 { public class Program { public static void Main(string[] args) { var inputs = Console.ReadLine().Split().Select(int.Parse).ToArray(); Enumerable.Range(inputs[0], inputs[1] - inputs[0] + 1) .Where(x => x % 3 == 0 || x.ToString().Contains("3")) .ToList().ForEach(Console.WriteLine); } } }