cswork / OAOpen practice workspace

PaycomOA #4

Q4. Static Code Analysis — C

EasyConcept questionJudge-ready

Topics (AI-labelled)Simulation

The original problem gives a C function that returns 0 for an odd input and 1 for an even input, and calls it twice in a row starting from i=3. This site keeps the function and the number of calls, but reads the initial i from input and outputs the value after the second call.

Input

One line with one signed 32-bit integer i.

Output

Output the integer result after calling the original function twice in a row.

Example 1

Input:

3

Output:

1

Example 2

Input:

2

Output:

0

Example 3

Input:

0

Output:

0

Editorial

Loading solution…