#include<iostream> #include<bits/stdc++.h> using namespace std; int main(){ double x; cin>>x; if(x<1) cout<<x; if(1<=x&&x<10) cout<<2*x-1; if(x>=10) cout<<3*x-11; }