Reverse Trip to Jerusalem
Difficulty: Hard

You and your $N-1$ friends recently got tired of playing Trip to Jerusalem (i.e. Musical Chairs). In order to make things interesting again, you decide to invent a new game. And you call it *Reverse Trip to Jerusalem*.

Here's how it works. Instead of arranging the chairs in a circle, the $N$ friends (including you) arrange yourselves in a circle. Then exactly one person in the circle holds the chair.

For the first round, all $N$ of you will be in the circle. The music starts and plays for $C_1$ seconds. Every second, the person holding the chair shall pass it to the person to his left. The person who receives the chair when the music ends is OUT and he/she is not included in the circle in the subsequent rounds. The person to his left then receives the chair. And that's where the chair starts for the second round.

For the $i^\text{th}$ round, $N-i+1$ players remain and the person holding the chair is the person to the left of the most recently outed person. The music starts and plays for $C_i$ seconds. The procedure for passing the chair is the same as the first round. The player who receives the chair when the music ends is OUT.

The person who remains after $N-1$ rounds is the winner.

Of course, you want to win this. It is your dream and you believe that you will survive. The person who initially holds the chair in the first round is Todd. You wish to know where to position yourself in order to win the game.

**Input Format**  
The input consists of two lines.
The first line contains a single integer $N$.
The second line contains $N-1$ integers, the $C_i$'s, each separated by single spaces.

**Output Format**  
Output a single line describing the winning position. If the winning position is the $P^\text{th}$ position to the left of Todd, then output the integer $P$ (Note that $0 < P < N$). However, if the winning position is Todd's position, print `YOU MUST BE TODD`. 

**Constraints**  
$1 \le N \le 2\cdot 10^5$    
$1 \le C_i \le 2\cdot 10^5$  

*Note:* The time limit is half of the usual time limit.

**Sample Input 1**  

    5
    1 2 2 4

**Sample Output 1**  

    2
    
**Sample Input 2**  

    2
    1 

**Sample Output 2**  

    YOU MUST BE TODD

**Explanation**  
In the first case, let $P_1$, $P_2$, $P_3$ and $P_4$ be the four persons to Todd's left, in that order. The first round begins with Todd passing the chair to $P_1$, which subsequently outs him (since the music is only 1 second long). The second round starts with $P_2$ holding the chair. The music ends when $P_4$ receives the chair, thus forcing him out of the game. The third round starts with Todd again and stops at $P_3$. The fourth round starts with Todd and ends with Todd and so $P_2$ survives.

In the second case, Todd passes the chair to the other person, the 1-second music stops and that person is out of the game. Hence, the only way to win the game is to become Todd.



Input Format:

Output Format:

Sample Input:

Sample Output:

Python 3 starter code:


Reference solution (C++):
```cpp
#include <cstdio>
#include <cstring>
#include <string>
#include <map>
#include <algorithm>

using namespace std;

int f[200010];


int main() {
int n;
    scanf("%d",&n);
    for (int i = 0; i + 1 < n; ++i) {
        scanf("%d",f + i);

    }
    int x = 0;
    for (int i = 2; i <= n; ++i) {
        x = (x + f[n - i] + 1) % i;
    }

    if (x == 0) {
        puts("YOU MUST BE TODD");
    }
    else {
        printf("%d\n",x);
    }
    return 0;
}
```