Go: package main

import (
	"fmt"
)

func main() {
	var A, B, N int
	fmt.Scanf("%d %d %d", &A, &B, &N)

	login := 0
	week := 0
	sum := 0

	for sum < N {
		login++
		week++
		sum += A

		if week%7 == 0 {
			sum += B
			week = 0
		}
	}

	fmt.Println(login)
}

Python: A,B,C=map(int,input().split())
coin=0
day=1
while True:
    coin+=A
    if day%7==0:
        coin+=B
    if coin>C or coin==C:
        break
    day+=1
print(day)

Python: A,B,C = map(int,input().split())
day = 0
coin = 0

while (coin < C):
    coin += A

    day += 1

    if day % 7 == 0:
        coin += B

print(day)

Python: A, B, C = map(int, input().split())

day = 0
login = 0
while True:
    day += 1
    login += A
    if day % 7 == 0:
        login += B
    if login >= C:
        break
print(day)

Python: A,B,C = map(int,input().split())

x = 0   
y = 0   

while y < C:
    y += A
    x += 1 
    if x%7 == 0:
        y += B
        
print(x)

Python: a,b,c=map(int,input().split())
cpw=7*a+b
w=c//cpw
r=c%cpw
if r<7*a:
    if r%a==0:
        d=r//a
    else:
        d=(r//a)+1
elif 0<=r-7*a and r-7*a<b:
    d=7
print(7*w+d)

Python: A,B,C=(int(x) for x in input().split())

if B==0:
    x=C//A
    if C%A!=0:
        x=x+1

elif A>C:
    x=1
elif C//A<7:
    x=C//A+1
else:
    t=0
    y=A*7
    y=y+B
    z=C%y
    if 0<z<A:
        t=1
    z=z//A
    if z>7:
        t=7-z
    s=C//y
    s=s*7
    x=z+s+t
print(x)

Python: A,B,C=map(int,input().split())
s=7*A+B
w=C//s
D=C%s

if D<7*A :
    d=-(-D//A)
elif 0<=D-7*A and D-7*A<B :
    d=7
    
print(7*w+d)

Python: a, b, c = map(int, input().split())
n = 0
count = 0
while True:
    n += 1
    if n % 7 == 0:
        count += (a+b)
    else:
        count += a
    if count >= c:
        print(n)
        break

Python: s = input().split()
l = 0
N = int(s[0])#１日
A = int(s[1])#ボーナス
B = int(s[2])#ほしい
W = N*7+A
if B%W == 0:
  l = B//W*7
else:
  if int(B%W) > int(N*7):
    l = (1+B//W)*7
  else:
    if int(B%W%N) == 0:
      l = B//W*7+B%W//N
    else:
      l = B//W*7+B%W//N+1
print(l)

Python: A, B, C = map(int,input().split())

coin = 0
for day in range(1,C+1):
    coin += A
    
    if day % 7 == 0:
        coin += B
    if coin >= C:break

print(day)

Python: 
def isPrime(n):
    n = abs(n)
    if n == 2:
        return True
    if n < 2 or n & 1 == 0:
        return False
    return pow(2, n - 1, n) == 1

def gcd(n, m):
    while m:
        n, m = m, n % m
    return n

def lcm(n, m):
    return n * m // gcd(n, m)

def main():
    a, b, c = list(map(lambda x: int(x), input().split()))
    ans = 0
    for i in range(1000000 + 1):
        login_coin = i * a
        bonus_coin = i // 7 * b
        total = login_coin + bonus_coin
        if total >= c:
            ans = i
            break

    print(ans)

if __name__ == '__main__':
    main()

Python: # coding: utf-8
# Your code here!

A,B,C =map(int,input().split())
K = int(0)

while C>=7*A+B:
    C = C - (7*A+B)
    K += 1
#print(C)
if C>7*A:
    #print(A,C)
    C=7+7*K
elif C%A==0:
    #print(A,C)
    C=(C/A)+7*K
else:
    #print(A,C)
    C=(C/A)+1+7*K
    
print('%d'%C)

Python: A,B,C=map(int,input().split())
coin=0
for day in range(1,C+1):
    coin+=A
    if day % 7 ==0:
        coin+=B
    if coin >= C: break
print(day)

Python: A,B,C = map(int,input().split())

coin=0
for day in range(1,C+1):
    coin+=A
    if day % 7== 0:
        coin+=B
    if coin >= C: break

print(day)

Python: # coding: utf-8
# Your code here!

A, B, C = map(int, input().split())

d = 0
cnt = 0
while True:
   d += 1
   if d % 7 == 0:
      cnt += (A + B)
   else:
      cnt += A
   if cnt >= C:
      print(d)
      break

Python: A,B,C=map(int,input().split())

coin=0
for day in range(1,C+1):
    coin+=A
    if day % 7 == 0:
        coin+=B
    if coin >= C : break

print(day)

Python: A,B,C=map(int,input().split())
ans = C//(7*A+B)*7 + min((C%(7*A+B)+A-1)//A,7)
print(ans)

Python: a,b,c = map(int,input().split())
sum = 0
for i in range(1,10**6+1):
    if i % 7 == 0:
        sum += b
    sum += a
    if sum >= c:
        print(i)
        break

Python: A,B,C=map(int,input().split())
i=1
while True:
    if i*A+int(i/7)*B>=C:
        break
    i+=1
print(i)

Python: A,B,C = map(int, input().split())
days = C//(A+(B/7))

coins = A*days + B*days/7

days = days if coins >= C else days +1

print(days)

Python: input_str = input("")
input_elms = input_str.split(" ")
for login_cnt in range(1, int(input_elms[2]) + 1):
    if int(input_elms[0]) * login_cnt + int(input_elms[1]) * int(login_cnt/7) >= int(input_elms[2]):
        print(login_cnt)
        break

Python: a,b,c=map(int,input().split())
d=0
i=1
while True:
    if i%7==0:
        d=d+a+b
    else:
        d=d+a
    if d>=c:
        break
    i=i+1
print(i)

Python: A,B,C = map(int,input().split())
day=0
coin=0

while True:
    if coin>=C:
        break
    day+=1
    coin+=A
    if day%7==0:
        coin+=B
print(day)

Python: A, B, C = map(int,input().split())

x = 0
c = 0

while c < C:
    
    x = x + 1
    
    if x % 7 != 0:
        c = c + A
    
    elif x % 7 == 0:
        c = c + A + B

print(x)

Python: y=0
z=1
x=list(map(int,input().split()))
#print(x)

a=x[0]
b=x[1]
c=x[2]

while True:
    if y>=c:
        break
    elif z%7==0:
        z+=1
        y+=a+b
        #print(z)
    else :
        y+=a
        z+=1
        #print(y)
print(z-1)

Python: A, B, C = map(int, input().split())
ans = 0
coin = 0

while coin < C:
    coin += A
    ans += 1
    if ans % 7 == 0:
        coin += B

print(ans)

Python: A,B,C=map(int,input().split())
ans = C//(7*A+B)*7 + min((C%(7*A+B)+A-1)//A,7)
print(ans)

Python: inputline = input().split()
a = int(inputline[0])
b = int(inputline[1])
c = int(inputline[2])

cnt = 0
coin = 0

while coin < c:
    cnt += 1
    if (cnt % 7) == 0:
        coin += b
    coin += a
print(cnt)

Python: #20 ソーシャルゲーム

A, B, C = map(int,input().split())

coin = 0
for day in range (1, 1+C):
        coin += A
        
        if day % 7 == 0:
                coin += B
        if coin >= C:
                break

print(day)

Python: a, b, c = map(int, input().split())
ans = 0
while c > 0:
    c -= a
    ans += 1
    if ans % 7 == 0:
        c -= b
print(ans)

Python: A,B,C=map(int,input().split())
x=A*7+B
y=C//(A*7+B)
z=x*y
v=C-z

if (A*7)<v<x:
    print((y+1)*7)
else:
    coin=0
    day=0
    while coin<v:
        coin+=A
        day+=1
    print(y*7+day)

Python: a,b,c = map(int,input().split())

d = 0
e = 0
while e < c:
    d += 1
    if d%7 == 0:
        e += b
    e += a
print(d)

Python: A,B,C=map(int,input().split())

sum=0
i=0
while True:
    sum+=A
    i+=1
    if sum>=C:
        print(i)
        break
    if i%7==0:
        sum+=B
        if sum>=C:
            print(i)
            break

Python: A,B,C=map(int,input().split())
coin=0
for i in range(1,C+1):
    coin+=A
    if i%7==0:
        coin+=B
    if coin>=C:
        break
print(i)

Python: import math as m
A,B,C=(float(x) for x in input().split())

a=m.ceil(C/A)

s=7*A+B
t=C//s
#sは1週間にもらえるコインの枚数
u=C-s*t
#uは端数
v=m.ceil(u/A)

if v<=7:
    b=7*t+v
    
else:
    b=7*t+7
    
if a>b:
    print(int(b))
else:
    print(int(a))

Python: # -*- coding: utf-8 -*-
a,b,c = map(int,input().split())

ans = 0
coin = 0
while True:
    coin += a
    ans += 1
    if ans % 7 == 0:
        coin += b
    if coin >= c:
        break
print(ans)

Python: ABC=list(map(int,input().split()))
coin=0
date=0
days=0

while(1):
    days+=1
    
    if not date==6:
        coin=coin+ABC[0]
    else:
        coin=coin+ABC[1]
        coin=coin+ABC[0]

    if coin>=ABC[2]:
        print(days)
        break
    date=(date+1)%7

Python: A,B,C=(int(x) for x in input().split())

i=0
N=C
while N>0:
    N=C-A*i
    if N<=0:
        print(i)
        break
            
    else:
         i+=1
         if i%7==0:
            C-=B