import math



x = int(eval(input()))

if 1 <= x%11 <= 6:

    print((math.ceil(x/11)*2 - 1))

else:

    print((math.ceil(x/11)*2))
n = int(eval(input()))

ans = n//11*2

if 0 < n%11 <= 6:

    ans += 1

elif 6 < n%11 <= 10:

    ans += 2



print(ans)
import math

x = int(eval(input()))
if 1 <= x % 11 <= 6:
    print((math.ceil(x / 11) * 2 - 1))
else:
    print((math.ceil(x / 11) * 2))

n = int(eval(input()))
ans = n // 11 * 2
if 0 < n % 11 <= 6:
    ans += 1
elif 6 < n % 11 <= 10:
    ans += 2
print(ans)

-import math - -x = int(eval(input())) -if 1 <= x % 11 <= 6: -    print((math.ceil(x / 11) * 2 - 1)) -else: -    print((math.ceil(x / 11) * 2)) +n = int(eval(input())) +ans = n // 11 * 2 +if 0 < n % 11 <= 6: +    ans += 1 +elif 6 < n % 11 <= 10: +    ans += 2 +print(ans)