Polygon Game

Two players alternately draw chords inside a convex N-gon that avoid all earlier chords, including shared endpoints; decide the winner under optimal play.

Hard8Game theoryCombinatoricsDynamic programmingGeometryNo attempts yetTime limit2sMemory limit512 MB

Problem

A convex polygon has NN vertices. Every interior angle is smaller than 180180^\circ, and the vertices are numbered 11 through NN in clockwise order.

Seonggwan and Hongjun play a game on this polygon. Seonggwan moves first, and the two players alternate turns.

On a turn the player picks two vertices and draws the segment that joins them. The segment is allowed to lie on a side of the polygon. The new segment must not meet any segment drawn earlier. Two segments that touch at an endpoint count as meeting.

The player who cannot draw a segment loses. Given NN, write a program that decides who wins when both players play optimally.

Input

The first line contains NN (3N10003 \le N \le 1000).

Output

Print 11 if Seonggwan wins, or 22 if Hongjun wins.