#include #include #include #include #include #include #include #include #include #include #include #include #include #define FOR(i, a, b) for(int i=(a);i<=(b);i++) #define RFOR(i, a, b) for(int i=(a);i>=(b);i--) #define MOD 1000000007 #define INF 1000000000 using namespace std; int main(void) { long long int n; long long int a, b, c; cin >> n; a = n / 3; b = n / 5; cout << (a + b) * 2 << endl; return 0; }