object Main { def main(args:Array[String]) = { print((1 to readLine.toInt toList).map((i:Int) => i match { case x if x % 15 == 0 => "FizzBuzz" case x if x % 3 == 0 => "Fizz" case x if x % 5 == 0 => "Buzz" case x => x }).foldRight("")((x,y) => x + "\n" + y)) } }