#include int main() { int N; std::cin >> N; for (int x = 1;; ++x) { if (N + x / 7 * 6 <= x) { std::cout << x << '\n'; break; } } }