Tennis Rounds

Problem Number: 
12 643
Type of Problem: 
Problem Category: 
Input: 
Critical Input
0
0
Critical Input: 
3 2 5 3 5 7 2 1 2 2 2 1 3 1 5 4 1 9 4 2 8 4 6 3 6 45 32 20 1000 443 20 104856 1 20 100012 66666
Random Input: 
Problem Id: 
12643