The scoring system of the Plovdiv Informatics Olympiad is very unusual. The contest has N contestants and T problems. There is no partial credit, so a contestant either solves a problem completely or fails it completely.
The point value of each problem equals the number of contestants who did not solve it, so a problem's value is only fixed once the contest ends. A contestant's score is the sum of the point values of the problems they solved.
Before the contest, each contestant is assigned a distinct ID from 1 to N. Philip's ID is P. A contestant's rank is defined as the sum of the following four terms:
Given the final results, write a program that computes Philip's score and rank.
Read the following from standard input:
Constraints:
Print Philip's final score and rank on one line, separated by a single space.
Problem 1 was left unsolved by 1 contestant, problem 2 by 2 contestants, and problem 3 by 4 contestants, so the point values are 1, 2, and 4 respectively.
As a result, contestant 1 earns 4 points; contestants 2 (Philip), 4, and 5 each earn 3 points; and contestant 3 earns 1 point.
Exactly 1 contestant (contestant 1) scored higher than Philip, and no one tied his score while solving more problems, so Philip's rank is 2.