package main import ( "bufio" "fmt" "os" "strconv" ) func nextInt(sc *bufio.Scanner) int { sc.Scan() i, e := strconv.Atoi(sc.Text()) if e != nil { panic(e) } return i } func main() { sc := bufio.NewScanner(os.Stdin) n := nextInt(sc) for i := 1; i <= n; i++ { switch { case i%15 == 0: fmt.Println("FizzBuzz") case i%5 == 0: fmt.Println("Buzz") case i%3 == 0: fmt.Println("Fizz") default: fmt.Println(i) } } }