#include<bits/stdc++.h>
using namespace std;
int main(){
long long n,x = 0,y = 0,s;
cin>>n;
x = n / 33;
if(n % 33 <= 16 && n % 33 != 0){
x = x - 1;
y = y + 1;
}else if(n % 33 > 16){
x = x + 1;
}
if(n <= 33) s = 1900;
else s = x * 1900 + y * 3300;
cout<<s<<endl;
}
/**************************************************************
Problem: 1522
User: wangyiyang
Language: C
Result: Compile Error
****************************************************************/