import java.io.BufferedReader import java.io.InputStreamReader import java.io.PrintWriter val br = BufferedReader(InputStreamReader(System.`in`)) val out = PrintWriter(System.out) fun main() { br.use { out.use { // repeat(readInteger()) { solve() } solve() out.flush() } } } fun solve() { val n = readInteger() for (i in 1..n) { val ans = when { i % 3 == 0 && i % 5 == 0 -> "FizzBuzz" i % 3 == 0 -> "Fizz" i % 5 == 0 -> "Buzz" else -> i } out.println(ans) } } fun readInteger() = Integer.parseInt(br.readLine()) fun readLong() = java.lang.Long.parseLong(br.readLine()) fun readStringList() = br.readLine()!!.split(' ') fun readIntegerList() = readStringList().map(Integer::parseInt) fun readLongList() = readStringList().map(java.lang.Long::parseLong) fun readDoubleList() = readStringList().map(java.lang.Double::parseDouble)