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