eolymp
Competitions

Week 2 Conditionals Part 1

Conditional statement - 1

Time limit 1 second
Memory limit 128 MiB

Find the value of y according to the next condition:

y = \begin{cases} x^2 - 3x + 4, x < 5 \\ x + 7, x \ge 5 \end{cases}

Input data

One integer x\:(-1000 \le x \le 1000).

Output data

Print the value of y according to the conditional statement above.

Examples

Input example #1
2
Output example #1
2
Input example #2
10
Output example #2
17