시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB121994990978.362%

문제

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?

입력

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

출력

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

예제 입력 1

12

예제 출력 1

12

예제 입력 2

13

예제 출력 2

14

예제 입력 3

14

예제 출력 3

15

출처

School > CS@Mines > CS@Mines HSPC 2021 B번

  • 문제를 만든 사람: Colin Siles