x=int(input())

if x<=6:

    print((1))

else:

    x-=6

    if x%11>5:

        print((x/11*2+2+1))

    else:

        if x%11==0:

            print((x/11*2+1))

        else:

            print((x/11*2+1+1))
x=int(input())

ans=0

ans+=2*(x/11)

x-=11*(x/11)

ans+=x/6

x-=6*(x/6)

if x==0:

    print(ans)

else:

    print(ans+1)

x = int(input())
if x <= 6:
    print((1))
else:
    x -= 6
    if x % 11 > 5:
        print((x / 11 * 2 + 2 + 1))
    else:
        if x % 11 == 0:
            print((x / 11 * 2 + 1))
        else:
            print((x / 11 * 2 + 1 + 1))

x = int(input())
ans = 0
ans += 2 * (x / 11)
x -= 11 * (x / 11)
ans += x / 6
x -= 6 * (x / 6)
if x == 0:
    print(ans)
else:
    print(ans + 1)

-if x <= 6: -    print((1)) +ans = 0 +ans += 2 * (x / 11) +x -= 11 * (x / 11) +ans += x / 6 +x -= 6 * (x / 6) +if x == 0: +    print(ans) -    x -= 6 -    if x % 11 > 5: -        print((x / 11 * 2 + 2 + 1)) -    else: -        if x % 11 == 0: -            print((x / 11 * 2 + 1)) -        else: -            print((x / 11 * 2 + 1 + 1)) +    print(ans + 1)