#1991. function

function

说明

There is a function y=f(x), and the formula is as follow:


y={ x      x<1
    | 2x-1   1<=x<10
    \ 3x-11  x>=10

pease write a program, where the input is x, and the output is y

输入格式

one integer, named x

输出格式

one integer, y, which is calculated by the formula defined above
14
31

提示