#include using namespace std; int main() { unsigned long long int n; unsigned long long int a, b; cin >> n; a = n / 3; b = n / 5; n = (a + b) * 2; cout << n << endl; return 0; }