class Main{public static void main(String[]g)throws Exception{double y=1e5;int n=0,i;for(;(i=System.in.read())>32;n=n*10+i-48);for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;System.out.println((int)y);}} class Main{public static void main(String[]g)throws Exception{double y=1e5;int n=0,i;for(;(i=System.in.read())>32;n=n*10+i-48);for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;System.out.println((int)y);}} Main public static void main(String[]g)throws Exception{double y=1e5;int n=0,i;for(;(i=System.in.read())>32;n=n*10+i-48);for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;System.out.println((int)y);} main {double y=1e5;int n=0,i;for(;(i=System.in.read())>32;n=n*10+i-48);for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;System.out.println((int)y);} double y=1e5; y 1e5 int n=0 n 0 i; i for(;(i=System.in.read())>32;n=n*10+i-48); ; (i=System.in.read())>32 (i=System.in.read()) i System.in.read() System.in.read System.in System System.in 32 n=n*10+i-48 n=n*10+i-48 n n*10+i-48 n*10+i n*10 n 10 i 48 ; for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05; i=1000; i=1000 i 1000 n-->0 n-- n 0 y+=y%i>0?i-y%i:0 y+=y%i>0?i-y%i:0 y y%i>0?i-y%i:0 y%i>0 y%i y i 0 i-y%i i y%i y i 0 y*=1.05; y*=1.05 y 1.05 System.out.println((int)y) System.out.println System.out System System.out (int)y String[]g g
class Main{public static void main(String[]g)throws Exception{double y=1e5;int n=0,i;for(;(i=System.in.read())>32;n=n*10+i-48);for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;System.out.println((int)y);}}
