#include <iostream>using namespace std;
int main(){
int d;
while(cin >> d){
cout << 19600*d+1275 << '\n';
}