Task: Program Execution
Input (English): p, 9979, n, 9577, T, 5503, 9283, 7363, 5571, 9397, 4265, w, 737, P, T, 2553, W, 721
Output (English): 7