13 Floors

면접 대비

시간 제한1초메모리 제한2048 MB

요약
실제 층 번호가 주어질 때 13층을 건너뛴 표기를 출력한다. 12층은 12로 두고 13층부터는 하나씩 밀린다.
난이도

쉬움10점 중 2점

유형
수학, 구현, 완전 탐색
정답자
아직 제출이 없습니다

문제

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 12th12^\text{th}, 13th13^\text{th}, and 14th14^\text{th} floors should be labeled 1212, 1414, and 1515, respectively. Given the true floor number, can you tell Bill what to label that floor?

입력

The input is a single positive integer x≤1,000,000x \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.

예제3

  1. 예제 1

    입력
    12
    
    예상 출력
    12
    
  2. 예제 2

    입력
    13
    
    예상 출력
    14
    
  3. 예제 3

    입력
    14
    
    예상 출력
    15