Problem: Let for .
You have given integers , , , , and . Find .
Input Format: The only line contains five integers , , , , and (, , , , ).
Output Format: Print .
Note: In the first example, , .
In the second example, .
Problem: Let for .
You have given integers , , , , and . Find .
Input Format: The only line contains five integers , , , , and (, , , , ).
Output Format: Print .
Note: In the first example, , .
In the second example, .
Sample Cases
Case 1
Input
5 1 2 5 3
Output
72900
Case 2
Input
17 97 41 37 11
Output
317451037
Similar problems
Sign in to unlock AI tutor feedback