Computing...

Input:

rank | (1 | 2 | 1\n-2 | -3 | 1\n3 | 5 | 0)


Result:

2

Contact Pro Premium Expert Support