Players take turns counting. The first player starts with the number "1", , and each player says next number in turn. However, any number divisible by X (for example, three) is replaced by the word fizz, and any divisible by Y (for example, five) by the word buzz. Numbers divisible by both become fizz buzz. A player who hesitates, or makes a mistake is eliminated from the game. This program prints out the final series of numbers where those divisible by X, Y and both are replaced by “ fizz" and/or "buzz".