시간 제한메모리 제한제출정답맞힌 사람정답 비율
0.5 초 1024 MB185372863840.793%

문제

이 대회의 운영진 중 한 명인 KSA 학생은 $17$시와 $19$시를 구별할 수 없다. 이는 당연하게도 $17$과 $19$가 모두 소수이기 때문일 것이다. 시간을 제대로 구별해서 KSA의 명예를 지키기 위해 정수 $N$을 입력받아서 소수가 아닌 $N$ 이상의 정수를 아무거나 구해주자.

입력

첫 번째 줄에 정수 $N$이 주어진다.

출력

문제의 정답을 출력한다. 정답은 $10^{9}$ 이하여야 한다.

정답이 여러 개 존재한다면 아무거나 출력해도 상관없다.

제한

  • $1 \leq N \leq 10^{9}$

서브태스크

번호배점제한
15

$N \leq 2$

245

$N \leq 10^6$

350

추가 제약 조건 없음

예제 입력 1

5

예제 출력 1

10

예제 입력 2

6

예제 출력 2

12
W3sicHJvYmxlbV9pZCI6IjI3NDY1IiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVjMThjXHVjMjE4XHVhYzAwIFx1YzU0NFx1YjJjYyBcdWMyMTgiLCJkZXNjcmlwdGlvbiI6IjxwPlx1Yzc3NCBcdWIzMDBcdWQ2OGNcdWM3NTggXHVjNmI0XHVjNjAxXHVjOWM0IFx1YzkxMSBcdWQ1NWMgXHViYTg1XHVjNzc4IEtTQSBcdWQ1NTlcdWMwZGRcdWM3NDAgJDE3JFx1YzJkY1x1YzY0MCAkMTkkXHVjMmRjXHViOTdjIFx1YWQ2Y1x1YmNjNFx1ZDU2MCBcdWMyMTggXHVjNWM2XHViMmU0LiBcdWM3NzRcdWIyOTQgXHViMmY5XHVjNWYwXHVkNTU4XHVhYzhjXHViM2M0ICQxNyRcdWFjZmMgJDE5JFx1YWMwMCBcdWJhYThcdWI0NTAgXHVjMThjXHVjMjE4XHVjNzc0XHVhZTMwIFx1YjU0Y1x1YmIzOFx1Yzc3YyBcdWFjODNcdWM3NzRcdWIyZTQuIFx1YzJkY1x1YWMwNFx1Yzc0NCBcdWM4MWNcdWIzMDBcdWI4N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