#include int main() { float N; std::cin >> N; int z_count = 0; z_count = (int)N/3 * 2 + (int)N/5 * 2; std::cout << z_count << std::endl; return 0; }