As an avid programmer, Carson likes to live by the following phrase:
"Eat, sleep, code, repeat."
However, sometimes he does one task more than the others. When doing a self-assessment on his efficiency during a specific day, he has developed the following formula to measure his productivity.
The formula is defined as
As an active learner, Carson has
Constraints
For this problem, you will be required to pass all the samples in order to receive any points. In addition, you must pass all previous subtasks to earn points for a specific subtask.
For all subtasks:
Subtask 1 [10%]
Subtask 2 [20%]
Subtask 3 [30%]
Subtask 4 [40%]
No additional constraints.
Input Specification
The first line contains a single integer
The next
Output Specification
Output long long
. In Java, this can be done with long
. In Python, the standard int
will suffice.
Sample Input 1
1
7
Sample Output 1
12
Sample Explanation 1
For the first and only question
Comments