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