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())
ans = c//(a*7+b)*7+min((c%(a*7+b)+a-1)//a,7)
print(ans)

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

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
cnt = 0
while True:
    coin += a
    cnt += 1
    if cnt%7 == 0:
        coin += b
    if coin >= c:
        break
print(cnt)

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

D=0 #Dは日数
X=0 #Xは枚数
while X<C:
    D+=1
    X+=A
    if D%7 == 0:
        X+=B
print(D)

Python: a, b, c = map(int, input().split())
ans = c//(a*7+b)*7+min((c%(a*7+b)+a-1)//a,7)
print(ans)

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

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

Python: A,B,C=map(int,input().split())
i=0
while A*i+i//7*B<C:
    i+=1
print(i)

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

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

print(day)

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

Python: t = [int(x) for x in input().split()]
i = 0

while t[2] > 0:
  i = i + 1
  t[2] = t[2] - t[0]
  if i % 7 == 0:
    t[2] = t[2] - t[1]
    
print(i)

Python: a,b,c=map(int,input().split())
d=int(a*7+b)
e=int(c%d)
if c<d:
    if c%a==0:
        if c/a>=7:
            print(7)
        else:
            print(int(c/a))
    else:
        if c/a>=6:
            print(7)
        else:
            print(int(c/a)+1)
else:
    if e==0:
        print(int(c/d)*7)
    else:
        if e%a==0:
            if e/a>=7:
                print(int(c/d)*7+7)
            else:
                print(int(c/d)*7+int(e/a))
        else:
            if e/a>=6:
                print(int(c/d)*7+7)
            else:
                print(int(c/d)*7+int(e/a)+1)

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

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

Python: L=input().split( )
A,B,C=int(L[0]),int(L[1]),int(L[2])

w=C//(7*A+B)
m=C%(7*A+B)
d=m//A
if d>=7:
    d=7
else:
    if m%A!=0:
        d+=1
print(7*w+d)

Python: a,b,c=map(int,input().split())
f=a*7+b
z=c//f
d=c%f
e=d//a
j=d%a
if d!=0:
    if d<=7*a:
        if d%a==0:
            print(7*z+e)
        if d%a!=0:
            print(7*z+e+1)
    else:
        print(7*z+7)
else:
    print(7*z)

Python: a,b,c=map(int,input().split())
x=c//(7*a+b)
r=c-(7*a+b)*x
t=r//a
if c%(7*a+b)!=0:
    if r>=7*a:
        print(7*x+7)    
    else:
        if r%a!=0:
            print(7*x+t+1)
        else:
            print(7*x+t)
else:
    print(7*x)

Python: #!usr/bin/env python3
import sys
import math
import string
import collections
import fractions
import random
from operator import itemgetter
import itertools
from collections import deque
import copy
import heapq
import bisect

MOD = 10 ** 9 + 7
INF = float('inf')
input = lambda: sys.stdin.readline().strip()

sys.setrecursionlimit(10 ** 8)

A, B, C = map(int, input().split())
Sum = 0
for i in range(1, 10**9):
    Sum += A
    if i%7 == 0:
        Sum += B
    if Sum >= C:
        print(i)
        sys.exit()

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

days = C / (A+(B/7))

coins = A*days + B*days/7

days = int(days) if coins >= C else int(days+1)

print(days)

Python: A,B,C=list(map(int,input().split()))
p=0
q=0
while p<C:
    q+=1
    p+=A
    if q%7==0:
        p+=B
print(q)

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: A,B,C=map(int,input().split())
count=0
sum=0
i=0
while sum<C:
    i+=1
    count+=1
    if i%7==0:
        sum+=B
    sum+=A

print(count)

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

count=0
while C>0:
    count+=1
    C-=A
    if count%7==0:
        C-=B
print(count)

Python: import math

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

w=C//(7*A+B)

z=C-(7*A+B)*w

if z<=A*6:
    print(w*7+math.ceil(z/A))
    
else:
    print(w*7+7)

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: s = 0
d = 1
A, B, C = map(int, input().split())

while True:
    if s >= C:
        break

    s += A

    if d % 7 == 0:
        s += B

    d += 1

print(d - 1)

Python: x=list(map(int,input().split()))
y,cnt=0,0
while x[2]>y:
    cnt+=1
    y+=x[0]
    if cnt%7==0:
        y+=x[1]
print(cnt)

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

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

Python: from math import ceil

a,b,c = map(int,input().split())
week = (a*7 + b)
days = (c//week)*7
if a*6 < c-(days/7)*week:
    days += 7
else:
    days += ceil(((c%week)/a))
print(days)

Python: A,B,C=map(int,input().split())
ans=0
k=C//(7*A+B)
C-=k*(7*A+B)
if C<=7*A:
	print(7*k+(C+A-1)//A)
else:
	print(7*(k+1))

Python: import math as m
A,B,C=map(int,input().split())
pw=A*7+B
w=C//pw
r=C%pw
d=0
if  0<r<7*A:
    if r%A==0:
        d=r//A
    else:
        d=(r//A)+1
    
elif 7*A<=r<7*A+B: 
    d=7
print(w*7+ d )

Python: A, B, C = map(int, input().split())
n = 0  # ログイン回数
temp = 0  # n回ログインした後の合計枚数
while temp < C:
	n = n + 1
	if n % 7 == 0:
		temp = temp + A + B
	else:
		temp = temp + A

print(n)

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

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

Python: A,B,C=map(int,input().split())
i=0
while C>0:
  C=C-A
  i=i+1
  if i%7==0:
    C=C-B
print(i)

Python: a, b, c=map(int, input().split())
ans=c//(a*7+b)*7
c%=a*7+b
ans+=min(7, (c+a-1)//a)
print(ans)

Python: A, B, C = [int(i) for i in input().split(' ')]

week_reward = A * 7 + B

weeks, remain_rewards = divmod(C, week_reward)

remain_days = 0

if remain_rewards == 0:
    print(weeks * 7)
    exit(0)

for i in range(1, 7):
    if remain_rewards <= A * i:
        print(weeks * 7 + i)
        exit(0)

    if i == 6:
        print((weeks + 1) * 7)

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

ans = 0
while C > 0:
    ans += 1
    C -= A
    if ans % 7 == 0:
        C -= B

print(ans)