Task: Program Execution
Input (English): 309, 311, 411
Output (English): 0, 1, 3, 4, 9