read n; echo ${n} | rev | fold -s1 | awk '{printf("%d*4^%d\n", $0, NR-1)}' | paste -sd+ | bc | awk -v n=${n} '{ print $0 % 15 == 0 ? "FizzBuzz" : $0 % 3 == 0 ? "Fizz" :$0 % 5 == 0 ? "Buzz" : n; }'