#include <iostream>
using namespace std;
 
int main(){
        int week,a,b,ans,aans;
        cin>>week;
        a=100000*0.05;
        b=week+1;
        a*=b;
        ans=100000+a;
        aans=ans/1000;
        aans=ans*1000;
        if(aans!=ans)ans+100;
        cout<<ans<<endl;
}
 