#include<stdio.h> #define PI 3.141592654 #define E 2.71828182846 #include<math.h> int main() { int n; scanf("%d",&n); int result=1; result=log10(2*PI*n)/2+n*log10(n/E)+1; printf("%d\n",result); return 0; }