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:

- If the
`N`

given is divisible by`X`

output`Fizz`

- If the
`N`

given is divisible by`Y`

output`Buzz`

- If the
`N`

given is divisible by both`X`

and`Y`

output`FizzBuzz`

- Otherwise output the number given

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`

- Points: 4
- Time limit: 2.0s
- Memory limit: 64.0M
- Author: BlackBox
- Category: Classics
- Type: Implementation
- All Submissions Best Submissions

Comments

- There are no comments.