using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 競プロ { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int N = int.Parse(s); for (int i = 1; i <= N; i++) { Console.WriteLine(ToString(i)); } Console.ReadLine(); } private static string ToString(int num) { string res = ""; if (num % 3 == 0) res += "Fizz"; if (num % 5 == 0) res += "Buzz"; if (string.IsNullOrEmpty(res)) res = num.ToString(); return res; } } }