시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 17 5 3 50.000%

문제

크로스와 크로스 게임은 1 × n칸으로 이루어진 보드에서 진행한다. 두 플레이어는 서로 번갈아가면서 게임을 한며, 각 칸의 크기는 1 × 1이다.

각 플레이어는 자기 턴일때, 빈 칸중 한 곳에 '×' 마크를 한다.

만약, 어떤 플레이어가 연속된 3개의 '×'를 만들 수 있다면 그 플레이어가 이긴다.

n이 주어졌을 때, 두 플레이어가 현재 턴에서 선택할 수 있는 가장 좋은 방법으로 게임을 했을 때, 이기는 사람을 구하는 프로그램을 작성하시오.

입력

첫째 줄에 n이 주어진다. (3 ≤ n ≤ 2000)

출력

첫번째 플레이어가 이긴다면 1을, 두번째 플레이어가 이긴다면 2를 출력한다.

예제 입력 1

3

예제 출력 1

1
W3sicHJvYmxlbV9pZCI6IjM1OTYiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWQwNmNcdWI4NWNcdWMyYTRcdWM2NDAgXHVkMDZjXHViODVjXHVjMmE0IiwiZGVzY3JpcHRpb24iOiJcclxuPHA+XHJcblx0XHVkMDZjXHViODVjXHVjMmE0XHVjNjQwIFx1ZDA2Y1x1Yjg1Y1x1YzJhNCBcdWFjOGNcdWM3ODRcdWM3NDAgMSAmdGltZXM7IG5cdWNlNzhcdWM3M2NcdWI4NWMgXHVjNzc0XHViOGU4XHVjNWI0XHVjOWM0IFx1YmNmNFx1YjRkY1x1YzVkMFx1YzExYyBcdWM5YzRcdWQ1ODlcdWQ1NWNcdWIyZTQuIFx1YjQ1MCBcdWQ1MGNcdWI4MDhcdWM3NzRcdWM1YjRcdWIyOTQgXHVjMTFjXHViODVjIFx1YmM4OFx1YWMwOFx1YzU0NFx1YWMwMFx1YmE3NFx1YzExYyBcdWFjOGNcdWM3ODRcdWM3NDQgXHVkNTVjXHViYTcwLCBcdWFjMDEgXHVjZTc4XHVjNzU4IFx1ZDA2Y1x1YWUzMFx1YjI5NCAxICZ0aW1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