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