object Main extends App { val n = scala.io.StdIn.readInt for(x <- 1 to n){ if(x%3 == 0 && x%5 == 0){ println("FizzBuzz") }else if(x%3 == 0){ println("Fizz") }else if(x%5 == 0){ println("Buzz") }else{ println(x) } } }