Limits: 1s, 512 MB

“CodeSavages” is a very renowned online judge (Contest Platform) in these days. They provide an initial rating to every contestant and after each contest, they increase or decrease their rating point based on their performance of that contest. They also provide a rank to the user based on their rating point. Rank of a user changes if he gets into another range because of the rating changes after contests. “CodeSavages” shows two things to the user - his current rank and his best rank of all time.

This is a companion discussion topic for the original entry at