#include<stdio.h> int main() { double c; int k, n; scanf_s("%d", &k); n = 0; for (c = 0; c <= k; ++n, c = c + 1.0 / n); printf("%d", n); return 0; }