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:
n=int(input())

if n<=6:
    print(1)
elif n<=11:
    print(2)
else:
    count = (n//11)*2
    if n%11 <= 5:
        print(count+1)
    else:
        print(count+2)

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
x = int(input())

a = x // 11
b = x % 11 
if b >6:
    c = 2
else:
    c = 1
print(2*a+c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf -8 -*-
# C - X: Yet Another Die Game
# 標準入力の取得
x = int(input())

# yは6⇒5⇒6⇒5・・・とすればよいので、11で割った余りを場合分けすればよい
if x % 11 > 6:
    print((x//11)*2+2)
else:
    print((x//11)*2+1)

Submission status: Wrong Answer

Solution code:
d,m=divmod(int(input()),11)
print(1+d*2+m//7)

Submission status: Wrong Answer

Solution code:
x = int(input())

count_11 = x // 11
count_11 *= 2
remainder = x % 11

if remainder > 6:
    count_11 += 2
else:
    count_11 += 1



print(count_11)

Submission status: Wrong Answer

Solution code:
x = int(input())
e = x // 11
d = x - e * 11
if d > 6:
    print(e*2 + 2)
elif 0 < d < 6:
    print(e*2 + 1)
else:
    print(e*2)

Submission status: Wrong Answer

Solution code:
x = int(input())
a,b = x//11,x%11
ans = a*2
if b>0:
  ans += 1
if b>5:
  ans += 1
print(ans)

#print(*ans, sep='\n')

Submission status: Wrong Answer

Solution code:
x = int(input())
a,b = x//11,x%11
ans = a*2
if b > 0:
  ans += 1
if b>5:
  ans += 1
print(ans)

#print(*ans, sep='\n')

Submission status: Wrong Answer

Solution code:
x = int(input())
a,b = x//11,x%11
ans = a*2+(b>0)+(b>5)

print(ans)

#print(*ans, sep='\n')

Submission status: Wrong Answer

Solution code:
x = int(input())
a,b = x//11,x%11
ans = a*2+1+(b>5)

print(ans)

#print(*ans, sep='\n')

Submission status: Wrong Answer

Solution code:
import math
import itertools
import statistics
#import collections
x = int(input())

s =  x/11

ans = s*2
if ans < ans//1+0.1:
    ans = ans//1
else:
    ans = math.ceil(s*2)

print(int(ans))

Submission status: Wrong Answer

Solution code:

import math
import itertools
import statistics
#import collections
x = int(input())

s =  x/11

ans = math.ceil(s*2)

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

ans = (x // 11) * 2
tmp = x % 11

if tmp <= 6:
    ans += 1
else:
    ans += 2

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
print(-(-x*2//11))

Submission status: Wrong Answer

Solution code:
x = int(input())
q,mod = divmod(x,11)
count=q*2
while True:
    mod -= 6
    count += 1
    if mod <= 0:
        print(count)
        break
    mod -= 5
    count += 1
    if mod <= 0:
        print(count)
        break

Submission status: Wrong Answer

Solution code:
x = int(input())
q,mod = divmod(x,11)
count=q*2
sum
while True:
    mod -= 6
    count += 1
    if mod < 0:
        print(count)
        break
    mod -= 5
    count += 1
    if mod < 0:
        print(count)
        break

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = x//11 * 2
mod = x%11

if 0<mod<=6:
    ans += 1
else:
    ans += 2

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = x//11 * 2
mod = x%11

if mod<=6:
    ans += 1
else:
    ans += 2

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

if 6 >= x:
    print("1")
elif 11 >=x:
    print("2")
else:
    print(2*(x//11) +1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import ceil
count = 0
x = int(input())
count = 2*int(x/11)
x -= count*11
if x == 0:
  print(count)
elif x <= 6:
  print(count+1)
else:
  print(count+2)

Submission status: Wrong Answer

Solution code:
x = int(input())
cnt = 0
if x>11:
    cnt += 2*(x//11)
    x %= 11

while True:
    x -= 6
    cnt += 1
    if x <= 0:
        break
    x -= 5
    cnt += 1
    if x<=0:
        break
print(cnt)

Submission status: Wrong Answer

Solution code:
def resolve():
    n = int(input())

    if n <= 6:
        return print(1)
    elif n <= 11:
        return print(2)
    else:
        c = n // 11
        MOD = 2 if n % 11 > 6 else 1
    print(c*2+MOD)

if __name__ == '__main__':
    resolve()

Submission status: Wrong Answer

Solution code:
def resolve():
    n = int(input())

    if n <= 6:
        return print(1)
    elif n <= 11:
        return print(2)
    else:
        c = n // 11
    print(c*2+n % 2)

if __name__ == '__main__':
    resolve()

Submission status: Wrong Answer

Solution code:
x = int(input())

ans = 0

if x >= 11:
    t = x//11
    ans += t*2
    x = x%11

if x > 6:
    ans += 2
elif x <= 6:
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    x=I()
    ans=(x//11)*2
    b=x%11
    if b<=6:
      ans+=1
    else:
        ans+=2
        
    print(ans)  
    

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
x = int(input())
print((x//11) * 2  + (x % 11 > 5))

Submission status: Wrong Answer

Solution code:
x=int(input())
print((-(-2*x//11)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

mod = x%11
shou = x//11

if mod == 0:
    print(shou*2)
elif mod > 0 and 6 > mod:
    print(shou*2+1)
else:
    print(shou*2+2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SI(): return sys.stdin.readline()[:-1]

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

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
 
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

x = INT()
cnt = 0

# for i in range()

print(ceil(x / 5.5))

Submission status: Wrong Answer

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
 
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

x = INT()
cnt = 0

# for i in range()
print(int(x // 5.5)+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
x = int(input())
count = x // 11
count2 = x % 11

if count2 <= 6:
    print(count * 2 + 1)
else:
    print(count * 2 + 2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import ceil


def main():
    target = int(input())
    print(ceil(2 * target / 11))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = int(x / 11 * 2)


if  x % 11 <= 6 and x % 11 != 0:
    ans += 1
else:
    ans += 2

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = x // 11 * 2


if  x % 11 <= 6 and x % 11 != 0:
    ans += 1
else:
    ans += 2

print(ans)

Submission status: Wrong Answer

Solution code:
from math import ceil
x = int(input())
ans = ceil(x / 11 * 2)
if (x % 11) % 6 == 0 or (x % 11) % 5 == 0:
    ans -= 1

print(ans)

Submission status: Wrong Answer

Solution code:
from math import ceil
x = int(input())
ans = ceil(x / 11 * 2)
if (x % 11) % 6 == 0:
    ans -= 1
if (x % 11) % 5 == 0:
    ans -= 1
print(ans)

Submission status: Wrong Answer

Solution code:
from math import ceil
x = int(input())
print(ceil(x / 11 * 2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())
count = 0

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

Submission status: Wrong Answer

Solution code:
a, b = divmod(int(input()), 11)
print(a * 2 + (b > 6) + 1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())
# 2回で5, 6 -> 11点
i, j = divmod(x, 11)
ans = i * 2
if 0 < j <= 5:
    ans += 1
elif 5 < j:
    ans += 2
print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
# 2回で5, 6 -> 11点
i, j = divmod(x, 11)
ans = i * 2
if 0 < j <= 5:
    ans += 1
else:
    ans += 2
print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
# 2回で5, 6 -> 11点
i, j = divmod(x, 11)
if j <= 5:
    ans = i * 2 + 1
else:
    ans = (i + 1) * 2
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if N <= 6:
  ans = 1
elif N <= 11:
  ans = 2
elif N % 11 == 0:
  ans = N / 11 * 2
else:
  ans = (math.floor(N / 11) * 2) + 1

print(math.floor(ans))

Submission status: Wrong Answer

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

if N <= 6:
  ans = 1
elif N <= 11:
  ans = 2
elif N % 11 == 0:
  ans = N / 11 * 2
else:
  ans = (math.floor(N / 11) * 2) + 1

print(ans)

Submission status: Wrong Answer

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

if N <= 6:
  ans = 1
elif N <= 11:
  ans = 2
elif N % 11 == 0:
  ans = N / 11
else:
  ans = (math.floor(N / 11) * 2) + 1

print(ans)

Submission status: Wrong Answer

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

if N <= 6:
  ans = 1
elif N <= 11:
  ans = 2
else:
  ans = (math.floor(N / 11) * 2) + 1

print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())

a=x%11
b=x//11

if a==0:
    ans=2*b
elif a<=5:
    ans=2*b+1
elif 5<a<11:
    ans=2*b+2
print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())

a=x%11
b=x//11

if 0<a<6:
    ans=2*b+1
elif a==0:
    ans=2*b
elif 5<a<11:
    ans=2*(b+1)
print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())

a=x%11
b=x//11
print(a,b)
if 0<a<6:
    ans=2*b+1
elif a==0:
    ans=2*b
elif 5<a<11:
    ans=2*(b+1)
print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())

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

Submission status: Wrong Answer

Solution code:
x=int(input())

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

Submission status: Wrong Answer

Solution code:
x=int(input())

a=x%11
b=x//11

if a<6:
    ans=2*b+1
else:
    ans=2*(b+1)
print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
x = int(input())

time1 = x // 11
X = x - time1*11
time1 *= 2
y = 5
if X // y == 0 or X == y:
    time1 += 1
else:
    time1 += 2
print(time1)

Submission status: Wrong Answer

Solution code:
x = int(input())

time1 = x // 11
X = x - time1*11
time1 *= 2
if time1 % 2 == 1:
    y = 6
else:
    y = 5
if X // y == 0 or X == y:
    time1 += 1
else:
    time1 += 2
print(time1)

Submission status: Wrong Answer

Solution code:
# 53

X = int(input())

if X < 7:
  print(1)
elif X >= 12:
  print(int(X / 11) * 2 + 1)
else:
  print(2)

Submission status: Wrong Answer

Solution code:
# 53

X = int(input())

print(int(X / 11) * 2 + 1)

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
print(int(n//5.5)+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

x = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

x = int(input())

print(x * 2 // 11 + 1)

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=(n//11)*2

if n%11==0:
    print(ans)
elif n%11<=6:
    print(ans+1)
else:
    print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=(n//11)*2

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

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=(n//11)*2

if  n%11<=5:
    print(ans+1)
else:
    print(ans+2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
# from fractions import gcd
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from functools import reduce
from bisect import bisect_left, insort_left
from heapq import heapify, heappush, heappop

INPUT = lambda: sys.stdin.readline().rstrip()
INT = lambda: int(INPUT())
MAP = lambda: map(int, INPUT().split())
S_MAP = lambda: map(str, INPUT().split())
LIST = lambda: list(map(int, INPUT().split()))
S_LIST = lambda: list(map(str, INPUT().split()))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7


def main():
    x = INT()
    
    n = x//11
    m = x%11
    
    if m == 0: a = 0
    elif 0 < m <= 5: a = 1
    else: a = 2

    print(n*2 + a)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

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

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

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

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(math.ceil(X / 5.5))

Submission status: Wrong Answer

Solution code:
x = int(input())

s , a = divmod(x , 11)

if a > 6:
    print((s*2) + 2)
else:
    print((s*2) + 1)

Submission status: Wrong Answer

Solution code:
x = int(input())

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

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

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())
a=n//11
a*=2
b=n%11
if b>6:
  a+=2
else:
  a+=1
print(a)

Submission status: Wrong Answer

Solution code:
x = int(input())

N = x // 11
M = x % 11

ans = 0
if 0 < M <= 6:
  ans = 1
else:
  ans = 2

print(2*N + ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

N = x // 11
M = x % 11

ans = 0
if 0 < M <= 5:
  ans = 1
else:
  ans = 2

print(2*N + ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

N = x // 11
M = x % 11

ans = 0
if M <= 5:
  ans = 1
else:
  ans = 2

print(2*N + ans)

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


def main():
    N = int(input())

    x, y = divmod(N, 11)
    ans = x * 2
    if y <= 6:
        print(ans + 1)
        return
    elif y <= 11:
        print(ans + 2)
        return


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


def main():
    N = int(input())

    if N <= 6:
        print(1)
        return
    elif N <= 11:
        print(2)
        return
    else:
        x, y = divmod(N, 11)
        ans = x * 2
        if y <= 6:
            print(ans + 1)
            return
        elif y <= 11:
            print(ans + 2)
            return


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
n = int(input())

if n <= 6:
  print(1)
else:
  result = n%11
  if 0 < result <= 6:
    print(n//11*2+1)
  elif result > 6:
    print(n//11*2+2)
  else:
    print(n//11)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n <= 6:
  print(1)
else:
  result = n%11
  if result <= 6:
    print(n//11*2+1)
  elif result > 6:
    print(n//11*2+2)
  else:
    print(n//11)

Submission status: Wrong Answer

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()


def solve(x):
    rot = x // (6 + 5)
    res = x % (6 + 5)
    ans = 2 * rot
    # rot:evenなら、つぎに当たるのは6
    if res > 0 and rot % 2 == 0:
        if res <= 6:
            ans += 1
        else:
            ans += 2
    elif res > 0 and rot % 2 == 1:
        if res <= 5:
            ans += 1
        else:
            ans += 2
    else:
        pass
    return ans

def main():
    x = I()
    ans = solve(x)
    print(ans)
    print()
    for i in range(1, 30):
        print(i, solve(i))
main()

Submission status: Wrong Answer

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
     
def main():
    x = I()
    rot = x // (6 + 5)
    res = x % (6 + 5)
    ans = 2 * rot
    # rot:evenなら、つぎに当たるのは5
    if res > 0 and rot % 2 == 0:
        if res <= 5:
            ans += 1
        else:
            ans += 2
    elif res > 0 and rot % 2 == 1:
        if res <= 6:
            ans += 1
        else:
            ans += 2
    else:
        pass
    print(ans)
main()

Submission status: Wrong Answer

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
     
def main():
    x = I()
    rot = x // (6 + 5)
    res = x % (6 + 5)
    ans = 2 * rot
    # rot:evenなら、つぎに当たるのは5
    if rot % 2 == 0:
        if res <= 5:
            ans += 1
        else:
            ans += 2
    else:
        if res <= 6:
            ans += 1
        else:
            ans += 2
    print(ans)
main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())

ans = 1
if X > 6 and X <= 11:
    ans = 2
elif X > 11:
    p, q = divmod(X, 11)
    ans = p*2
    if q <= 6:
        ans += 1
    if q > 6 and q <= 10:
        ans += 2

print(ans)

Submission status: Wrong Answer

Solution code:
X = int(input())

ans = 1
if X > 6 and X <= 11:
    ans = 2
elif X > 11:
    p, q = divmod(X, 11)
    ans = p*2 + (1 if q != 0 else 0)

print(ans)

Submission status: Wrong Answer

Solution code:
X = int(input())

ans = 1
if X >= 6 and X <= 11:
    ans = 2
elif X > 11:
    p, q = divmod(X, 11)
    ans = p*2 + (1 if q != 0 else 0)

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

per11 = x // 11
remain_per11 = x % 11

if remain_per11 >= 5:
    print(per11*2 + 2)
elif remain_per11 == 0:
    print(per11*2)
else:
    print(per11*2 + 1)

Submission status: Wrong Answer

Solution code:
x = int(input())

per11 = x // 11
remain_per11 = x % 11

if remain_per11 >= 6:
    print(per11*2 + 2)
elif remain_per11 == 0:
    print(per11*2)
else:
    print(per11*2 + 1)

Submission status: Wrong Answer

Solution code:
x = int(input())

per11 = x // 11
remain_per11 = x % 11

if remain_per11 >= 6:
    print(per11*2 + 2)
else:
    print(per11*2 + 1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
if n<=6:
    print(1)
    exit()
if n<=11:
    print(2)
    exit()
ans=n//11
mod=n%11
if 6<=mod<=10 :
    print((ans+1)*2)
elif mod==0:
    print(ans*2)
else:
    print((ans+1)*2-1)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n<=5:
    print(1)
    exit()
if n<=11:
    print(2)
    exit()
ans=n//11
mod=n%11
if 6<=mod<=10 :
    print((ans+1)*2)
elif mod==0:
    print(ans*2)
else:
    print((ans+1)*2-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
if n<=5:
    print(1)
    exit()
if n<=11:
    print(2)
    exit()
ans=n//11
mod=n%11
if 0<=mod<=5:
    print(ans*2)
else:
    print(ans*2-1)

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
x = int(input())

q = x // 11
ans = q * 2

if x - q * ans <=5:
    ans += 1
else:
    ans += 2

print(ans)

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 count%2 != 0:
        minus = 6
    else:
        minus = 5
    if math.ceil(x/11*2) - minus >= x:
        count -= 1
    print(count)