Problem:


Score : 300 points

Problem Statement

Snuke has decided to play with a six-sided die. Each of its six sides shows an integer 1 through 6, and two numbers on opposite sides always add up to 7.

Snuke will first put the die on the table with an arbitrary side facing upward, then repeatedly perform the following operation:

Operation: Rotate the die 90° toward one of the following directions: left, right, front (the die will come closer) and back (the die will go farther). Then, obtain y points where y is the number written in the side facing upward.

For example, let us consider the situation where the side showing 1 faces upward, the near side shows 5 and the right side shows 4, as illustrated in the figure.
If the die is rotated toward the right as shown in the figure, the side showing 3 will face upward.
Besides, the side showing 4 will face upward if the die is rotated toward the left, the side showing 2 will face upward if the die is rotated toward the front, and the side showing 5 will face upward if the die is rotated toward the back.

Find the minimum number of operation Snuke needs to perform in order to score at least x points in total.

Constraints

1 ≦ x ≦ 10^{15}

x is an integer.

Input

The input is given from Standard Input in the following format:

x

Output

Print the answer.

Sample Input 1

7

Sample Output 1

2

Sample Input 2

149696127901

Sample Output 2

27217477801



Sample input:
7


Sample output:
2

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
if x <= 11:
    count = 0
    point = 0
    while True:
        point += 6
        count += 1
        if point >= x:
            break
        point += 5
        count += 1
        if point >= x:
            break
    print(count)
else:
    count = math.ceil(x/11*2)
    if math.ceil(x/11*2) - 5 >= x:
        count -= 1
    print(count)

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
if x <= 11:
    count = 0
    point = 0
    while True:
        point += 6
        count += 1
        if point >= x:
            break
        point += 5
        count += 1
        if point >= x:
            break
    print(count)
else:
    count = math.ceil(x/11*2)
    if (x/11*2) - 5 >= x:
        count -= 1
    print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = (x//11)*2
if x%11==0:
    print(ans)
elif x%11 < 6:
    print(ans+1)
else:
    print(ans+2)

Submission status: Wrong Answer

Solution code:
x=int(input())

ans=0
if x%11>6:
    ans+=2
else:
    ans+=1

ans+=2*(x//11)
print(ans)

Submission status: Wrong Answer

Solution code:
X=int(input())
if X<=6:
  print(1)
else:
  if X%11==0:
    ans=(X//11)*2
    print(ans)
  if X%11>=1 and X%11<7:
    ans=(X//11)*2+1
    print(ans)
  else:
    ans=(X//11)*2+2
    print(ans)

Submission status: Wrong Answer

Solution code:
X=int(input())
if X<=6:
  print(1)
else:
  if X%11==0:
    ans=(X//11)*2
  if X%11>=1 and X%11<7:
    ans=(X//11)*2+1
  else:
    ans=(X//11)*2+2
  print(ans)

Submission status: Wrong Answer

Solution code:
X=int(input())
if X<=6:
  print(1)
else:
  if X%11==0:
    ans=(X//11)*2
  if X%11>1 and X%11<7:
    ans=(X//11)*2+1
  else:
    ans=(X//11)*2+2
  print(ans)

Submission status: Wrong Answer

Solution code:
def main():
    x=int(input())
    s=2*(x//11)
    t=x%11
    print(s if t<1 else s+1 if t<6 else s+2)
main()

Submission status: Wrong Answer

Solution code:
def main():
    x=int(input())
    s=2*(x//11)
    print(s if x%11==0 else s+1 if 0<x%11<6 else s+2)
main()

Submission status: Wrong Answer

Solution code:
def main():
    x=int(input())
    s=2*(x//11)+1
    print(s if 0<x%11<6 else s+1)
main()

Submission status: Wrong Answer

Solution code:
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac
import fractions
from functools import reduce
from operator import mul
import bisect
import sys
import logging
import heapq
import itertools

logging.basicConfig(level=logging.ERROR)

input = sys.stdin.readline

setrecursionlimit(1000000)


def main():
	x = int(input())
	print(2*math.floor(x/11)+(1 if x%11<7 else 2))

main()

Submission status: Wrong Answer

Solution code:
a=int(input())
flag=0
if(a<6):
    flag=1
    print(1)
elif(6<=a and a<=11):
    flag=1
    print(2)
elif(flag!=1 and a%11==0):
    print(a//11*2)
elif(flag!=1 and a%11!=0):
    if 6<a%11:
        print(a//11*2+2)
    else:
        print(a//11*2+1)

Submission status: Wrong Answer

Solution code:
a=int(input())
flag=0
if(a<6):
    flag=1
    print(1)
elif(6<=a and a<=11):
    flag=1
    print(2)
elif(flag!=1 and a%11==0):
    print(a//11*2)
elif(flag!=1 and a%11!=0):
    print(a//11*2+1)

Submission status: Wrong Answer

Solution code:
a=int(input())
flag=0
if(a<6):
    flag=1
    print(1)
elif(a<=6 and a<=11):
    flag=1
    print(2)
elif(flag!=1 and a%11==0):
    print(a//11*2)
elif(flag!=1 and a%11!=0):
    print(a//11*2+1)

Submission status: Wrong Answer

Solution code:
N = int(input())
cnt = 0
ans = 2*(N//11)-1
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
cnt = 0
ans = 2*(N//11)
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
cnt = 0
ans = 2*(N//11)+1
print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())
answer=x//11*2
if 1<=x%11<=5:
  answer +=1
elif 6<=x%11<=10:
  answer +=2
print(answer)

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

if (N%6 == 0):
    print(N//6)
else:
    print(math.ceil(N/11*2))

Submission status: Wrong Answer

Solution code:
import math
from fractions import gcd
import collections


N = int(input())

print(math.ceil(N/11*2))

Submission status: Wrong Answer

Solution code:
#053C X: Yet Another Die Game
import sys
x = int(sys.stdin.readline())

if x%11 <=6:
    print((x//11)*2 +1)
else:
    print((x//11)*2 +2)

Submission status: Wrong Answer

Solution code:
#53c
x = int(input())

#5,6,5,6...と点を得ることができる。
ans = x // 11
x_dash = x - 11 * ans

if x_dash == 0:
    print(ans*2)
else:
    if x_dash<=5:
        print(2*ans+1)
    else:
        print(2*ans+2)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
N = int(input())
if N <= (N // 11) * 11 + 6: print(-(-N // 11) * 2 - 1)
else: print(-(-N // 11) * 2)

Submission status: Wrong Answer

Solution code:
x = int(input())

if x<=6:
  print(1)
else:
  ans = int(-(-x//11))+1
  print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

if x<=6:
  print(1)
elif x%17==0:
  print(int(-(-x//5.5))-1)
else:
  ans = int(-(-x//5.5))
  print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

if x<=6:
  print(1)
else:
  ans = int(-(-x//5.5))
  print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

if x==6:
  print(1)
else:
  ans = int(-(-x//5.5))
  print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

if x <7:
  print(0)
else:
  ans = int(-(-x//5.5))
  print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

ans = int(-(-x//5.5))
print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
answer = (x // 11) * 2
remainder = x % 11
if remainder <= 6:
    answer += 1
else:
    answer += 2

print(answer)

Submission status: Wrong Answer

Solution code:
x = int(input())
answer = (x // 11) * 2
remainder = x % 11
if remainder < 6:
    answer += 1
else:
    answer += 2

print(answer)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf')
ans = 0 ;count = 0 ;pro = 1

x=int(input())
a,b=divmod(x,11)
a=math.ceil(x/11)
a*=2
if b<=6:
    # print(a,b)
    a-=1
print(a)

Submission status: Wrong Answer

Solution code:
n = int(input())

roll = n // 11 * 2

print(roll + 1 if n % 11 < 7 else roll  +2)

Submission status: Wrong Answer

Solution code:
n = int(input())

ans = n % 11
sample = 2 * n//11

print(sample if not ans else sample + ans//6)

Submission status: Wrong Answer

Solution code:
n = int(input())
 
ans = n % 11
sample = 2 * n//11
 
print(sample if not ans else sample + ans//6 + 1)

Submission status: Wrong Answer

Solution code:
n = int(input())

ans = 1
sample = 2 * n/11

print(int(ans + sample))

Submission status: Wrong Answer

Solution code:
import sys
import math

if sys.platform =='ios':
	sys.stdin=open('Untitled.txt')
input = sys.stdin.readline
def INT(): return int(input())
def MAP(): return [int(s) for s in input().split()]

x = INT()
print(math.ceil(x*2/11) if x >= 7 else 1)

Submission status: Wrong Answer

Solution code:
import sys
import math

if sys.platform =='ios':
	sys.stdin=open('Untitled.txt')
input = sys.stdin.readline
def INT(): return int(input())
def MAP(): return [int(s) for s in input().split()]

x = INT()
print(math.ceil(x*2/11))

Submission status: Wrong Answer

Solution code:
x = int(input())
d = 2 * (x // 11)
r = x % 11
if r <= 6:
  d += 1
else:
  d += 2
print(d)

Submission status: Wrong Answer

Solution code:
x=int(input())/11
print(1+int(x)+int(x+0.4))

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = 0
ans += x // 11
key = x % 11
if key > 5:
  print(ans*2+2)
elif key > 0:
  print(ans*2+1)
else:
  print(ans*2)

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = 0
ans += x // 11
key = x % 11
if key > 5:
  print(ans+2)
elif key > 0:
  print(ans+1)
else:
  print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
count = 1
count_t = n // 11
if n - count_t * 11 >= 5:
    count = 2
print(count_t * 2 + count)

Submission status: Wrong Answer

Solution code:
n = int(input())
count = 1
count_t = n // 11
if n - count_t * 11 >= 6:
    count = 2
print(count_t * 2 + count)

Submission status: Wrong Answer

Solution code:
n = int(input())
count = 1
count_t = n // 11
if n - (count_t) * 11 >= 7:
    count = 2
print(count_t * 2 + count)

Submission status: Wrong Answer

Solution code:
x = int(input())

ans = x // 11 * 2
if x % 11 > 6:
    ans += 2
elif x % 6 > 0:
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

ans = x // 11 * 2
if x % 11 > 6:
    ans += 2
else:
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:


X = int(input())

cnt = (X // 11)*2
m = X % 11
cnt += 1 if m <= 6 else 2

print(cnt)

Submission status: Wrong Answer

Solution code:
#
# 　　  ⋀_⋀　 
#　　  (･ω･)  
# .／ Ｕ ∽ Ｕ＼
#  │＊　合　＊│
#  │＊　格　＊│ 
#  │＊　祈　＊│ 
#  │＊　願　＊│ 
#  │＊　　　＊│ 
#      ￣
#
import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,ceil,sqrt,factorial,log #log2ないｙｐ
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    X=I()
    ans = X//11*2
    if (X-X//11*11)<=6:
        ans += 1
    elif X%11==0:
        pass
    else:
        ans += 2
    print(ans)
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
x=int(input())
div = x//11
rem = x%11

if(rem>5):
    print(2*div+2)
else:
    print(2*div+1)

Submission status: Wrong Answer

Solution code:
x = int(input())

if x <= 6:
    print(1)
    exit()
elif x <= 11:
    print(2)
    exit()
else:
    if x % 11 == 0:
        print(int(x/11)*2)
        exit()
    else:
        print(((x//11)*2)+1)
        exit()

Submission status: Wrong Answer

Solution code:
x = int(input())
p = x // 11
q = x % 11
if q <= 6 :
    ans = 2 * p + 1
else :
    ans = 2 * p + 2
print(ans)

Submission status: Wrong Answer

Solution code:
N=int(input())
turn=(N//11)*2
rest=N%11
if rest>0 and rest<=6:
  print(turn+1)
else:
  print(turn+2)

Submission status: Wrong Answer

Solution code:
from sys import stdin

n = int(stdin.readline().rstrip())
print(n*2//11+1)

Submission status: Wrong Answer

Solution code:
from sys import stdin

n = int(stdin.readline().rstrip())
if n%2 == 0:
    print(n*2//11)
else:
    print(n*2//11+1)

Submission status: Wrong Answer

Solution code:
x=int(input())
a=x%11
if a<=6:
    ans=1
else:
    ans=2

ans+=x//11*2
print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())
a=x%11
if a<=5:
    ans=1
else:
    ans=2

ans+=x//11*2
print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())
c=0
c+=x//11*2
rest=x%11
if(0<rest<6):
    c+=1
elif(6<=rest<11):
    c+=2
print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=n//11
if n%11>6:
  print(ans+2)
elif n%11==0:
  print(ans)
else:
  print(ans+1)

Submission status: Wrong Answer

Solution code:
#C
X = int(input())
ans = (X//11)*2
res = X%11
if res <= 6:
    ans+=1
else:
    ans+=2
    
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N <= 6:
    print(1)
    exit()
if N <= 11:
    print(2)
    exit()
if N % 11 == 0:
    print((N//11)*2)
    exit()
print(((N//11)*2)+1)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N <= 6:
    print(1)
    exit()
if N <= 11:
    print(2)
    exit()
if N % 11 == 0:
    print((N//11)*2)
print(((N//11)*2)+1)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N <= 6:
    print(1)
    exit()
if N <= 11:
    print(2)
    exit()
print(((N//11)*2)+1)

Submission status: Wrong Answer

Solution code:
x=int(input())
cn=11
ans=0
if x%cn!=0:
    ans=1+(x%cn)//5+(x//cn)*2
else:
    ans=2*(x//cn)
print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())
if x<=6:
    print(1)
else:
    a=x//11
    b=x%11
    if b<=6:
        print(2*a+1)
    else:
        print(2*a+2)

Submission status: Wrong Answer

Solution code:
x=int(input())
a=x//11
b=x%11
if b<=6:
    print(2*a+1)
else:
    print(2*a+2)

Submission status: Wrong Answer

Solution code:
x = int(input())
num = x // 11
amari = x % 11
if amari == 0:
    print(num)
else:
    print(num * 2 + 1 + amari // 5)

Submission status: Wrong Answer

Solution code:
x = int(input())
num = x // 11
amari = x % 11
print(num * 2 + 1 + amari // 5)

Submission status: Wrong Answer

Solution code:
x = int(input())

ans = (x // 11) * 2
amari = x % 11
if amari <= 6:
    ans += 1
else:
    ans += 2
print(ans)

Submission status: Wrong Answer

Solution code:
import sys
x = int(input())
a = (x // 11)*2
if x % 11 == 0 :
    print(a)
elif x%11 <= 5 :
    print(a+1)
else :
    print(a+2)

Submission status: Wrong Answer

Solution code:
x=int(input())
k=x%11
ans=x//11
if k<=6:
    print(2*ans+1)
else:
    print(2*ans+2)

Submission status: Wrong Answer

Solution code:
x=int(input())
ans=x//11*2
if 0<x%11<7:
  ans+=1
else:
  ans+=2
print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

if 0 < x % 11 < 7:
    print((x//11)*2 + 1)
else:
    print((x//11)*2 + 2)

Submission status: Wrong Answer

Solution code:
x = int(input())
r = x % 11
q = x // 11
if 1 <= r and r <= 6:
    print(2*q+1)
else:
    print(2*q+2)

Submission status: Wrong Answer

Solution code:
x = int(input())

n = (x//11)
i = 0
now = n*11
while(1):
  i += 1
  if i%2 == 1:
    now += 6
    if now >= x:
      print(2*n + 1)
      break
  else:
    now += 5
    if now >= x:
      print(2*n + 2)
      break

Submission status: Wrong Answer

Solution code:
x = int(input())

n = (x//11) * 2
for i in range(1,10):
  if 11*n + i >= x:
    print(11*n + i)
    break

Submission status: Wrong Answer

Solution code:
x = int(input())

if x <= 6:
    print(1)

elif x <= 11:
    print(2)

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

Submission status: Wrong Answer

Solution code:
x = int(input())
if 1 <= x <= 6:
    print(1)
elif 7 <= x <= 11:
    print(2)
else:
    print((x // 11) * 2 + 1)

Submission status: Wrong Answer

Solution code:
x = int(input())
if 1 <= x <= 6:
    print(1)
elif 7 <= x <= 11:
    print(2)
else:
    print((x // 11) * 2 + 1)

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
  
a = math.floor((n / 11)*2)
amari = n % 11
if amari == 0:
  print(a)
  exit(0)
  
if amari <= 6:
  print(a + 1)
  exit(0)

if amari > 6:
  print(a + 2)
  exit(0)

print(a)

Submission status: Wrong Answer

Solution code:
import math
n = int(input())

if n <= 6:
  print(1)
  exit(0)
  
a = math.floor((n / 11)*2)
amari = n % 11
if amari <= 6:
  print(a + 1)
  exit(0)

if amari > 6:
  print(a + 2)
  exit(0)

print(a)

Submission status: Wrong Answer

Solution code:
import math
n = int(input())

if n <= 6:
  print(1)
  exit(0)

if n <= 11:
  print(2)
  exit(0)
  
a = math.floor((n / 11)*2)
amari = n % 11
if amari <= 6:
  print(a + 1)
  exit(0)

if amari > 6:
  print(a + 2)
  exit(0)

print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=int(input())
ans=((x+10)//11-1)*2
if x%11<=6:
    ans+=1
else:
    ans+=2
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
i = (n//11)*2 + 1
n %= 11
ans = 6
while ans < n:
    if i % 2 == 0:
        ans += 6
    else:
        ans += 5
    i += 1
print(i)

Submission status: Wrong Answer

Solution code:
X=int(input())
ans=X//11
if X%11==0:
    print(ans*2)
elif X%11<6:
    print(ans*2+1)
else:
    print(ans*2+2)

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = (N // 11) * 2
if N%11 <= 6:
  ans += 1
else:
  ans += 2
print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
if x % 11 >= 7:
    print(x // 11 * 2 + 2)
else:
    print(x // 11 * 2 + 1)

Submission status: Wrong Answer

Solution code:
import math
print(math.ceil(int(input())/5.5))

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = x//11
ans *=2
if x%11<=6:
    ans +=1
else:
    ans +=2
print(ans)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys


def solve(x: int):
    amari = x%11
    answer = x//11*2
    answer += 2 if amari>6 else 1
    print(answer)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    x = int(next(tokens))  # type: int
    solve(x)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
x = int(input())
if x % 11 == 0:
    print((x // 11) * 2)
elif 5 < x and x < 11:
    print(2)
elif x <= 5:
    print(1)
    
else:
    if x % 11 > 5:
        print((x // 11) * 2 + 2)
    else:
        print((x // 11) * 2 + 1)

Submission status: Wrong Answer

Solution code:
x = int(input())
if x % 11 == 0:
    print((x//11) * 2)
elif 5 < x and x < 11:
    print(2)
elif x <= 5:
    print(1)
    
else:
    print((x//11) * 2 + 1)

Submission status: Wrong Answer

Solution code:
import collections
import itertools
import functools
import math

if __name__ == "__main__":
    x = int(input())
    res = x / 5.5
    print((x // 11) * 2 + int(x % 11 > 6))

Submission status: Wrong Answer

Solution code:
import collections
import itertools
import functools
import math

if __name__ == "__main__":
    x = int(input())
    res = round(x / 5.5)
    print(res)

Submission status: Wrong Answer

Solution code:
import collections
import itertools
import functools
import math

if __name__ == "__main__":
    x = int(input())
    res = math.ceil(x / 5.5)
    print(max(res - 1, 1)) if (x < 7 or res >= x) else print(res)

Submission status: Wrong Answer

Solution code:
import collections
import itertools
import functools
import math

if __name__ == "__main__":
    x = int(input())
    res = math.floor(x / 5.5)
    print(max(res - 1, 1)) if (x < 7 or res >= x) else print(res)

Submission status: Wrong Answer

Solution code:
import collections
import itertools
import functools
import math

if __name__ == "__main__":
    x = int(input())
    res = math.floor(x / 5.5)
    print(max(res, 1)) if (x < 7 or res >= x) else print(res + 1)

Submission status: Wrong Answer

Solution code:
import collections
import itertools
import functools
import math

if __name__ == "__main__":
    x = int(input())
    res = math.floor(x / 5.5)
    print(max(res, 1)) if x < 7 or res >= x else print(res + 1)

Submission status: Wrong Answer

Solution code:
import collections
import itertools
import functools
import math

if __name__ == "__main__":
    x = int(input())
    print(1) if x < 7 else print(math.ceil((x) / 5.5))

Submission status: Wrong Answer

Solution code:
import collections
import itertools
import functools
import math

if __name__ == "__main__":
    x = int(input())
    if x < 7:
        print(1)
    if x >= 7 and x <= 11:
        print(2)

Submission status: Wrong Answer

Solution code:
N=int(input())
print((N//11)*2 + (N%11>6) + 1)

Submission status: Wrong Answer

Solution code:
x=int(input())
i=x//11
j=x%11
if 1<=x<=6:
    print(0)
elif j==0:
    print(i*2)
elif 1<=j<=5:
    print(i*2+1)
else:
    print(i*2+2)

Submission status: Wrong Answer

Solution code:
x=int(input())
i=x//11
j=x%11
if j==0:
    print(i*2)
elif 1<=j<=5:
    print(i*2+1)
else:
    print(i*2+2)

Submission status: Wrong Answer

Solution code:
x = int(input())
ret = (x//11)*2
y = x%11
if y >= 1 and y <= 5:
    ret += 1
elif y >= 6:
    ret += 2
print(ret)

Submission status: Wrong Answer

Solution code:
x = int(input())

cnt = 0
num = 0

n = x%11
cnt = (x//11)*2

if n <=6 and n!=0:
    cnt += 1
elif n>7 and n!=0:
    cnt += 2

print(cnt)

Submission status: Wrong Answer

Solution code:
x = int(input())

cnt = 0
num = 0

n = x%11
cnt = (x//11)*2

if n <=6:
    cnt += 1
else:
    cnt += 2

print(cnt)

Submission status: Wrong Answer

Solution code:
x = int(input())

if x <= 6:
    print(1)
elif x <= 11:
    print(2)
else:
    ans = (x // 11) * 2
    x %= 11
    if x <= 6:
        ans += 1
    else:
        ans += 2
    print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n==1:
    print(0)
    exit()
if n<=6:
    print(1)
    exit()
if n<=12:
    print(2)
    exit()
else: 
    c=0 
    c1=0 
    c1+=(n//11)
    n=n%11 
    c1*=2 
    c+=c1
    if n==0:
        c+=0
    elif n<=6:
        c+=1
    else:
        c+=2 
    print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n==1:
    print(0)
    exit()
if n<=6:
    print(1)
    exit()
if n<=12:
    print(2)
    exit()
else: 
    c=0 
    n=n-12
    c+=1 
    arr=[5,6]
    c+=1
    c1=0 
    c1+=(n//11)
    n=n%11 
    c1*=2 
    c+=c1
    if n==0:
        c+=1
    elif n<=6:
        c+=1
    else:
        c+=2 
    print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n==1:
    print(0)
    exit()
if n<=6:
    print(1)
    exit()
if n<=12:
    print(2)
    exit()
else: 
    c=0 
    n=n-12
    c+=1 
    arr=[5,6]
    c+=1
    c1=0 
    c1+=(n//11)
    n=n%11 
    c1*=2 
    c+=c1
    if n==0:
        c+=0
    elif n<=5:
        c+=1
    else:
        c+=2 
    print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n==1:
    print(0)
    exit()
if n<=6:
    print(1)
    exit()
if n<=12:
    print(2)
    exit()
else: 
    c=0 
    n=n-12
    c+=1 
    arr=[5,6]
    c+=1
    c1=0 
    c1+=(n//11)
    n=n%11 
    c1*=2 
    c+=c1
    if n==0:
        c+=1 
    elif n<=5:
        c+=1
    else:
        c+=2 
    print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n==1:
    print(0)
    exit()
if n<=6:
    print(1)
    exit()
if n<=12:
    print(2)
    exit()
else: 
    c=0 
    n=n-12
    c+=1 
    arr=[5,6]
    c+=1
    c1=0 
    c1+=(n//11)
    n=n%11 
    c1*=2 
    c+=c1
    if n<=5:
        c+=1
    else:
        c+=2 
    print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n==1:
    print(0)
    exit()
if n<=6:
    print(1)
    exit()
if n<=12:
    print(2)
else: 
    c=0 
    n=n-12
    c+=1 
    arr=[5,6]
    c+=1
    from math import ceil 
    c1=0 
    c1+=(n//11)
    n=n%11 
    c1*=2 
    c+=c1
    if n<=5:
        c+=1
    else:
        c+=2 
    print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n<=12:
    print(2)
else: 
    c=0 
    n=n-12
    c+=1 
    arr=[5,6]
    c+=1
    from math import ceil 
    c1=0 
    c1+=(n//11)
    n=n%11 
    c1*=2 
    c+=c1
    if n<=5:
        c+=1
    else:
        c+=2 
    print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n<=12:
    print(2)
else: 
    c=0 
    n=n-12
    c+=1 
    arr=[5,6]
    from math import ceil 
    c+=ceil(n/11)
    c*=2 
    if n<=5:
        c+=1
    else:
        c+=2 
    print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%11==0:
    print(n//11)
else:
    a=n//11
    if a*11<n<=a*11+6:
        print(a*2+1)
    else:
        print(a**2+2)

Submission status: Wrong Answer

Solution code:
x=int(input())
k=x%11
if k == 0:
  print(x//11)
elif k <= 6:
  print((x//11)+1)
else:
  print((x//11)+2)

Submission status: Wrong Answer

Solution code:
n = int(input())
m = n // 11
l = n%11
if l ==0:
    a=0
elif 0<l<=5:
    a =1
elif 6<=l<=11:
    a=2
print(2*m + a)

Submission status: Wrong Answer

Solution code:
n = int(input())
m = n // 11
l = n%11
if l ==0:
    l=0
elif 0<l<=5:
    l =1
else:
    l=2
print(2*m + l)

Submission status: Wrong Answer

Solution code:
# C - X: Yet Another Die Game

x = int(input())

tmp = x//11
if x % 11 == 0:
    print(2*tmp)
elif x % 11 <= 5:
    print(2*tmp + 1)
else:
    print(2*tmp + 2)

Submission status: Wrong Answer

Solution code:
x = int(input())
a = x // 11 
b = x % 11 
if 0 < b and b <= 6 :
  print(2 * a + 1)
else:
  print(2 * a + 2)

Submission status: Wrong Answer

Solution code:
x=int(input())
print((x//11)*2+(x%11!=0)+(x%11>5))

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
x=int(input())

ans=x//11*2

if x%11<=6:
    ans+=1
else:
    ans+=2
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
cnt,x=0,0
for i in range(10**9):
    if x<=N:
        if i%2==0:
            cnt+=1
            x+=6
        if i%2==1:
            cnt+=1
            x+=5
    else:
        print(cnt)
        break

Submission status: Wrong Answer

Solution code:
n=int(input())
a=2*(n//11)
b=(n%11)//6
c=n%11 %5
print(a+b+((c+4)//5))

Submission status: Wrong Answer

Solution code:
n=int(input())
a=2*n//11
b=(n%11)//6
c=n%11 %5
print(a+b+((c+4)//5))

Submission status: Wrong Answer

Solution code:
x=int(input())
q=(x//11)*2
r=2 if x%11>5 else 1
print(q+r)

Submission status: Wrong Answer

Solution code:
x = int(input())

count = x // 11 * 2

if x % 11 == 0:
    exit()
elif x % 11 >= 7:
    count += 2
else:
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())
n, rest = divmod(x, 11)
if rest >= 7:
    print(n * 2 + 2)
else:
    print(n * 2 + 1)

Submission status: Wrong Answer

Solution code:
x = int(input())
rest = x % 11
if rest > 6:
  print((x // 11) * 2 + 2)
else:
  print((x // 11) * 2 + 1)

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = x // 11
tmp = x % 11
if tmp > 6:
  ans += 2
elif tmp > 0:
  ans += 1

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import copy
x = int(input())

count = 0
v = [1, 2, 3, 4 ,5, 6]
a = x//11
b = x % 11
print(a*2 + b)

Submission status: Wrong Answer

Solution code:
X = int(input())
ans = 0
q, mod = divmod(X,11)
#print(q,mod)
if mod <= 6:
  ans = q * 2 + 1
else:
  ans = q * 2 + 2
print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

q = x // 11
r = x % 11

if r == 0:
    print(2 * q)
elif 0 < r < 6:
    print(2 * q + 1)
else:
    print(2 * q + 2)

Submission status: Wrong Answer

Solution code:
x = int(input())

s = x // 11
m = x % 11

p = 2 if m > 6 else 1

ans = s*2 + p
print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
y = x//11
z = x%11

if z > 6:
  print(2*y+2)
else:
  print(2*y+1)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%11>=7:
    a=2
else:
    a=1
print((n//11)*2+a)

Submission status: Wrong Answer

Solution code:
x=int(input())
count=0
sum=0
count=(x//9)*2
if x%9!=0:
  if x%9<=5:
    count+=1
  else:
    count+=2
print(count)

Submission status: Wrong Answer

Solution code:
x=int(input())
count=0
sum=0
while sum<x:
  count+=2
  sum+=9
if sum-4>=x:
  count-=1
print(count)

Submission status: Wrong Answer

Solution code:
n=int(input())
if(n%5.5==0):
  print(int(n//5.5))
else:
  print(int(1+n//5.5))

Submission status: Wrong Answer

Solution code:
x = int(input())
q, mod = divmod(x, 11)

cnt = q * 2
if mod > 6:
    cnt += 2
else:
    cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

x = int(input())

q, r = divmod(x, 5 + 6)
ans = 2 * q + r // 6 + 1
print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
sho = x // 11
amari = x % 11
if 0 == amari:
    print(sho * 2)
elif 0 < amari < 6:
    print(sho * 2 + 1)
else:
    print(sho * 2 + 2)

Submission status: Wrong Answer

Solution code:
x = int(input())
sho = x // 11
amari = x % 11
if 0 <= amari < 6:
    print(sho * 2 + 1)
else:
    print(sho * 2 + 2)

Submission status: Wrong Answer

Solution code:
from sys import stdin
x = int(stdin.readline().rstrip())
ans = 0
if x <= 6:
    ans = 1
elif x <= 11:
    ans = 2
else:
    ans = (x//11)*2
    if x%11 <= 6:
        ans += 1
    else:
        ans += 2
print(ans)

Submission status: Wrong Answer

Solution code:
from sys import stdin
x = int(stdin.readline().rstrip())
ans = 0
if x <= 6:
    ans = 1
elif x <= 12:
    ans = 2
else:
    ans = (x//11)*2
    if x%11 != 0:
        ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = (x//11)*2
mod = x%11
if mod>6:
    ans += 2
else:
    ans += 1
    
print(ans)

Submission status: Wrong Answer

Solution code:
d,m=divmod(int(input()),11);print(d*2+(m>0)+(m>5))

Submission status: Wrong Answer

Solution code:
d,m=divmod(int(input()),11);print(d*2+1+(m>5))

Submission status: Wrong Answer

Solution code:
x = int(input())
n0 = x // 11
n1 = (x - 11 * n0 + 4) // 5
print(2 * n0 + n1)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n%11 != 0:
    print(n//11*2+1)
elif n%11 == 0:
    print(n//11*2)

Submission status: Wrong Answer

Solution code:
x=int(input())
ans = (x//11)*2
x_2 = x%11
if x_2 < 7:
    ans += 1
else:
    ans += 2
print(ans)