Go: package main

import (
	"fmt"
)

func calcDay(daily, bonus, req int) int {
	fullWcoin   := 7 * daily + bonus	//"週給"
	sixDaycoin := 6 * daily				//6日目まででもらえるコイン

	week := req / fullWcoin //必要満週数
	day := 0
	rem  := req % fullWcoin
		
		if sixDaycoin < rem && rem < fullWcoin {
			week++
		} else {
			day = rem / daily
				if rem % daily > 0 {
					day++
				}
		}

	return 7 * week + day
}

func main() {
	var daily, bonus, req int
		fmt.Scanf("%d %d %d",&daily ,&bonus ,&req)
		fmt.Printf("%d\n",calcDay(daily, bonus, req))
}

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

x=C%(A*7+B)
y =C//(A*7+B)

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

Python: a,b,c=map(int,input().split())
i=0
cnt=0
while cnt<c:
    i+=1
    cnt+=a
    if i%7==0:
        cnt+=b
print(i)

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

Python: a,b,c = map(int,input().split())
x = 0
x += c // (a*7 + b)*7
c %= (a*7 + b)
x += min(7,c//a)
if c % a and c//a < 7:
  x += 1
print(x)

Python: def calcDays(A, B, C):
    import math
    weeks = C // (A * 7 + B)
    mod = C % (A * 7 + B)
    if(mod >= A * 7):
        days = 7
    else:
        days = math.ceil(mod / A)
            
    print(days + weeks * 7)

def main():
    A, B, C = map(int, input().split())
    calcDays(A, B, C)

main()

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)