Paul has decided to make the game of FizzBuzz even harder. He has decided that the two numbers that define the rules can be changed by him any time he wants.
For reference these are the rules of FizzBuzz:
N
given is divisible by X
output Fizz
N
given is divisible by Y
output Buzz
N
given is divisible by both X
and Y
output FizzBuzz
The first line of input is the number N
which is a positive integer. X
and Y
are on separate lines that order and 2 <= X,Y <= 20
The output will be the output according to N
and Paul's rules
14
2
7
FizzBuzz
7
2
5
7