#include int main(void){ long long N; scanf("%d",&N); printf("%d",(N/3*2)+(N/5*2)); return 0; }