import java.util.Scanner;
public class Main{
private static Scanner cin;
public static void main(String args[])throws Exception {
cin = new Scanner(System.in);
int k = cin.nextInt();
int n = 0;
double tmp = 1;
if (k>=1 && k<=15) {
for (double i=2; i<10000000;i++) {
tmp = tmp + (1/i);
if (tmp > k) {
n = (int)i;
System.out.println(n);
break;
}
}
}
if (null != cin) {
cin.close();
}
}
}