#include "iostream"

using namespace std;

main (){
    long int n;
    cin >> n;
    cout << n/3*2 + n/5*2 << endl;
}