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