class A{public static void main(String[]s){java.math.BigDecimal b=b.ONE,a=b;for(int i=0;i++<2e3;)a=b.add(b.divide(a,499,0));System.out.print(a);}}