#include<bits/stdc++.h>
using namespace std;
int main(){
/*
49 座的 33 座的
49 座的大巴每辆租金为 3300 元,67元/坐
33 座的大巴每辆租金为 1900 元,57元/坐
*/
//x代表33座大巴数量
//y代表49座大巴数量
long long n,x = 0,y = 0,s;
cin>>n;
//优先选择33座的大巴
x = n / 33;
if(n % 33 <= 16 && n % 33 != 0){
x = x - 1;
y = y + 1;
}else if(n % 33 > 16){
x = x + 1;
}
// cout<<x<<" "<<y<<endl;
if(n <= 33) s = 1900;
else s = x * 1900 + y * 3300;
cout<<s<<endl;
}
/**************************************************************
Problem: 1522
User: admin
Language: C++
Result: Accepted
Time:72 ms
Memory:2072 kb
****************************************************************/