#include<iostream> using namespace std; int main() { int a; cin>>a; if(a<1) { cout<<a<<endl; } if(a>=1&&a<=10) { cout<<2*a-1<<endl; } if(a>=10) { cout<<3*a-11<<endl; } }