#879
Bronze III
CRNE
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

Thrilled about his new valid set of pieces, Mirko rushed over to Slavko's, to find that Slavko too found a set of chess pieces in his attic. Slavko's set, miraculously, contains only black pieces. But since neither of them can play chess, they settled on smashing one another senseless with their chessboards. While Slavko is warming up with a series of stretches, Mirko decided to sabotage Slavko's chessboard. An expert in carving wood, he decided to cut Slavko's chessboard so that it shatters into as many pieces as possible when Slavko attempts to hit Mirko. Mirko can only make horizontal and vertical cuts (parallel to the sides to the board), edge to edge, and has time to make at most N cuts.

입력

The first line of input contains an integer N (1 ≤ N ≤ 100), the number of cuts Mirko can make.

출력

Output the largest number of pieces Slavko's chessboard can crash into.

예제 입력 1

1

예제 출력 1

2

예제 입력 2

3

예제 출력 2

6
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Bronze III1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.