Task: Program Execution
Input (English): 729, 9281, M
Output (English): 1, 2