#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n<=3){ cout<<14; }else{ cout<<14+((n-3)*2.3); } return 0; }