Task: Program Execution
Input (English): n, 41, s, 411, 427, r
Output (English): 1, 2, 4, 7