package main import ( "fmt" "math" ) func main() { var n int _, _ = fmt.Scan(&n) d := ToDecimal593(n) if d%3 == 0 && d%5 == 0 { fmt.Println("FizzBuzz") } else if d%3 == 0 { fmt.Println("Fizz") } else if d%5 == 0 { fmt.Println("Buzz") } else { fmt.Println(n) } } func ToDecimal593(n int) int { var r int i := 0.0 for { n, r, i = n/10, r+n%10*int(math.Pow(4, i)), i+1 if n == 0 { return r } } }