Hide

Problem E
A Shortcut to What?

Write a program that reads an integer $n$ from the input. The program should add five to $n$, then triple the value and finally subtract ten. You are welcome to simplify the formula if you can, as long as the program gives the correct results.

Input

Input consists of one line containing one integer $n$, where $-1\, 000 \leq n \leq 1\, 000$.

Output

Output consists of one line containing one integer, the value computed from $n$ as described above.

Sample Input 1 Sample Output 1
-4
-7
Sample Input 2 Sample Output 2
0
5
Sample Input 3 Sample Output 3
1
8
Sample Input 4 Sample Output 4
2
11
Sample Input 5 Sample Output 5
3
14
Sample Input 6 Sample Output 6
12
41

Please log in to submit a solution to this problem

Log in