#include "iostream" using namespace std; main (){ int n; cin >> n; cout << n/3*2 + n/5*2 << endl; }