Task: Program Execution
Input (English): N, 407, G
Output (English): 1