#include<bits/stdc++.h>
using namespace std;
int main()
{
double n,a,t;
cin>>n;
if(n>=10){
a=n*2.0;
cout<<a;
}
else {
t=n*2.2;
cout<<t;
}
return 0;
}
/**************************************************************
Problem: 1303
User: ccf
Language: C++
Result: Wrong Answer
****************************************************************/