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