import sequtils, strutils const s = ["FizzBuzz", "Fizz", "Buzz"] let a = stdin.readLine.split.map parseInt var result = 0 for x in a: var y: string z = 0 if (x mod 15) == 0: y = s[0] elif (x mod 3) == 0: y = s[1] elif (x mod 5) == 0: y = s[2] else: y = "" z = x result.inc y.len + z echo result