4. Power Metre (2)

Time Limit: 1 seconds

Memory Limit: 128 MB

Rating: 800

Problem Statement

As time continues, heroes are getting more and more obsessed with this quiz. Create an overall score for all supes. To calculate the score: $Score = (Performance + Looks + Power - 1)^3$ to the nearest integer.

Input

The first line has three space-separated integers: $Performance$, $Looks$ and $Power$ $(1 \le Performance, Looks, Power \le 10)$.

Output

Output $Score$, as described in the Problem Statement.

Sample Cases
Sample Input 1:
3 9 8

Sample Output 1:
6859


Sample Input 2:
10 10 10

Sample Output 2:
24389
Explanation

For the first sample case, you calculate $Score$ using $19^3 = 6859$.

Sources

KL Coding Cup 2022 > Problem 1 > Intermediate League

Submit | Back