#include <iostream>

using namespace std;

int main(void)
{
    int i;
    int n;
    int debt;
    
    cin >> n;
    
    debt = 100000;
    for (i = 0; i <= n; i++) {
        debt += 5000;
    }
    cout << debt << endl;
    
    return 0;
}