using System; using System.Linq; class Program { static void Main(string[] args) { var line1 = Console.ReadLine(); var value1 = Convert.ToInt32(line1); foreach (var i in Enumerable.Range(1, value1)) { Console.WriteLine(FizzBuzz(i)); } } private static string FizzBuzz(int i) { if (i % 3 == 0 && i % 5 == 0) return "FizzBuzz"; if (i % 3 == 0) return "Fizz"; if (i % 5 == 0) return "Buzz"; return i.ToString(); } }