Task: Program Execution
Input (English): n, 1225, t, y, d, a, W, L, p, 2771, 5211, 7943, 745, 1875, 7811, K, 9215
Output (English): 36796