Task: Program Execution
Input (English): b, 81, 77, 381
Output (English): 1, 3, 7, 8