using System; using System.Linq; using static System.Console; using static System.String; namespace No593 { class Program { static void Main(string[] args) { var p4 = ReadLine().Trim(); WriteLine(ToFizzBuzzString(p4)); } static string ToFizzBuzzString(string p4) { var isTriple = p4.ToCharArray().Select(x => Convert.ToInt64(x)).Sum() % 3 == 0; var evens = p4.ToCharArray().Where((x, i) => i % 2 == 0).Select(x => Convert.ToInt64(x)).Sum(); var odds = p4.ToCharArray().Where((x, i) => i % 2 == 1).Select(x => Convert.ToInt64(x)).Sum(); var isQuintuple = Math.Abs(evens - odds) % 5 == 0; return $"{(isTriple ? "Fizz" : Empty)}{(isQuintuple ? "Buzz" : Empty)}{(!isTriple && !isQuintuple ? p4 : Empty)}"; } } }