package main import ( "fmt" "os" "bufio" "strings" "strconv" ) type Scanner struct { reader *bufio.Reader buffer []string pointer int } func NewScanner() *Scanner { return &Scanner{ reader: bufio.NewReaderSize(os.Stdin,4096), pointer: 0, } } func (self *Scanner) NextLine () string { var buffer []byte for { line,isPrefix,_ := self.reader.ReadLine() buffer = append(buffer, line...) if !isPrefix { break } } return string(buffer) } func (self *Scanner) Next () string { if self.pointer >= len(self.buffer) { line := self.NextLine() self.buffer = strings.Fields(line) self.pointer = 0 } self.pointer++ return self.buffer[self.pointer-1] } func (self *Scanner) NextInt () int { s := self.Next() i,_ := strconv.ParseInt(s,10,32) return int(i) } func (self *Scanner) NextLong () int64{ s := self.Next() l,_ := strconv.ParseInt(s,10,64) return int64(l) } func (self *Scanner) NextFloat () float32 { s := self.Next() f,_ := strconv.ParseFloat(s,32) return float32(f) } func (self *Scanner) NextDouble () float64 { s := self.Next() d,_ := strconv.ParseFloat(s,64) return float64(d) } func Calc (array []int,mod int) int { length := len(array) ret := 0 for i := 0; i < length; i++ { ret = (ret * 4 + array[i]) % mod } return ret } func main () { cin := NewScanner() N := cin.Next() L := len(N) A := make([]int,L) for i,a := range []byte(N) { A[i] = int(a - '0') } three := Calc(A,3) == 0 five := Calc(A,5) == 0 if three && five { fmt.Println("FizzBuzz") } else if three { fmt.Println("Fizz") } else if five { fmt.Println("Buzz") } else { fmt.Println(N) } }