#include<bits/stdc++.h> using namespace std; int main(){ int n,sum; cin>>n; if (n>100){ sum=n*50; } else{ sum=n*80; } cout<<sum<<endl; return 0; }