#include<iostream>
#include<string>
#include<algorithm>
#include <math.h>
using namespace std;
int main(){
    int n, rent; cin >> n;
    if(n % 2 != 0){
        rent =  floor(n / 2) + 1;
    }else{
        rent = n / 2;
    }
    cout << 100000 + rent * 10000 << endl;
    return 0;
}