import java.util.Scanner object test2 { def main(args: Array[String]): Unit = { val sc = new Scanner(System.in) val N = sc.nextInt for (i <- 1 to N) { if (i % 3 == 0) { if (i % 5 == 0) { println("FizzBuzz") } else { println("Fizz") } } else if (i % 3 != 0 && i % 5 == 0) { println("Buzz") } else {println(i)} } } }