main(){long n;scanf("%ld",&n);printf("%ld\n",(n/3+n/5)*2);}