1061: 分段函数求值

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:7419 Solved:6495

Description

有一分段函数定义如下

x < 1 时,y = x

1 <= x <10时,y = 2 * x -1

x >= 10时, y = 3 * x - 11

Input

输入一个整数x

Output

根据输入的x,输出相应的y

Sample Input Copy

5

Sample Output Copy

9