No submissions yet

Submit your solution to display here.

Please login/signup to submit your solution.
Loading...

Input

3 set 0 set 2 toggle 2

Expected Output

1