using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int cnt = int.Parse(s); for (int i = 1; i < cnt; i++) { s = ""; if (i % 3 == 0) { s = s + i.ToString(); } if (i % 5 == 0) { s = s + i.ToString(); } if (s == "") { s = i.ToString(); } Console.WriteLine(s); } } }