Hide

13 Floors

/problems/mines21.13floors/file/statement/en/img-0001.jpg
Photo by donaldytong. Retrieved from Wikipedia. CC BY-SA 3.0. Source

Bill is responsible for labeling all the floors on a new skyscraper. He’s superstitious, so he wants to skip floor 13 while labeling the floors. This means that the $12^\text {th}$, $13^\text {th}$, and $14^\text {th}$ floors should be labeled $12$, $14$, and $15$, respectively. Given the true floor number, can you tell Bill what to label that floor?

Input

The input is a single positive integer $x \leq 1\, 000\, 000$ representing the true floor number.

Output

The output is a single positive integer, which is the label for the corresponding floor in the input.

Sample Input 1 Sample Output 1
12
12
Sample Input 2 Sample Output 2
13
14
Sample Input 3 Sample Output 3
14
15
CPU Time limit 1 second
Memory limit 1024 MB
Author
Colin Siles
Source [email protected] High School Programming Competition 2021
License Creative Commons License (cc by-sa)

Please log in to submit a solution to this problem

Log in