Go: package main

import (
	"fmt"
	"strings"
	"bufio"
	"os"
	// "reflect"
	"strconv"
)

func oneLineInt(s string) []int {
	temp := strings.Split(s, " ")
	// fmt.Println(len(temp))
	ints := []int{}
	for _, elem := range(temp) {
		int_elem, _ := strconv.Atoi(elem)
		ints = append(ints, int_elem)
	}
	return ints
}

func coinCount(ints []int) int {
	cons := ints[0]
	bonus := ints[1]
	target := ints[2]
	count := 0
	day := 0
	var dc int
	for day_count, _ := range(make([]int, target)) {
		day++
		if day % 7 == 0 {
			count += bonus
		}
		count += cons
		if count >= target {
			dc = day_count + 1
			break
		}
	}
	return dc
}

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var txt string
	if scanner.Scan() {
		txt = scanner.Text()
	}
	ints := oneLineInt(txt)
	// fmt.Println(ints[1])
	// fmt.Println(reflect.TypeOf(ints[0]))
	result := coinCount(ints)
	fmt.Println(result)
}

Python: # AOJ Volume6 0652
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0652

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

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

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

while coin < c:
    coin += a
    count += 1
    output += 1
    
    if count == 7 :
        coin += b
        count = 0

print(output)

Python: A,B,C=map(int,input().split())
x=A*7+B
y=C//(A*7+B)
z=x*y
w=C-z
if (A*7)<w<x:
    print((y+1)*7)
else:
    coin=0
    day=0
    while coin<w:
        coin+=A
        day+=1
    print(y*7+day)

Python: a,b,c=input().split()
d = int(a)*7+int(b) #一週間で手に入るコイン
e = int(c)//d #必要な週の数
f = int(c)-d*e #残りのコイン
if f<=6*int(a) and f%int(a)>0 : g=f//int(a)+1
elif f<=6*int(a) and f%int(a)<=0 : g=f/int(a)
else : g=7
print(int(e*7+g))

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())

x=0
i=0

while x<c:
    x+=a
    i+=1
    
    if i%7==0:
        x+=b

print(i)

Python: 
n = [0 for i in range(3)]

n = input().split()

coin = int(n[2])

total = 0

count = 0

day = 0

while(total < coin):
    total += int(n[0])
    count += 1
    if(count == 7):
        total += int(n[1])
        count = 0
    day += 1


print(day)

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

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

Python: import math

a,b,c = map(int,input().split())
d=1
r=0
w=0

w = c//(7*a+b)
r = c%(7*a+b)
d = (math.ceil(r/a))

if d>7:
    d = 7
d += 7*w
print(d)

Python: a,b,c=(int(x) for x in input().split())
week=a*7+b
weeks=c//week
c=c-weeks*week
if c>a*7:
    days=7
else:
    days=-(-c // a)
total=days+weeks*7
print(total)

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

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

y=0

for x in range(1,C+1):
    y+=A
    if x%7==0:
        y+=B
    if y>=C:
        break
print(x)

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: import math

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

days = 1 
coin = 0



while c > coin: 
    coin = a * days + b * math.floor(days/7)
    days = days + 1
print (days - 1)

Python: a,b,c=(int(x) for x in input().split())
n=0
i=0
while n<c:
    n+=a
    i+=1
    if i%7==0:
        n+=b;
print(i)

Python: import math

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

x = c // (7*a + b)
y = c - (7*a + b)*x
z = math.ceil(y/a)

if y > 6 * a:
    print(7 * (x + 1))
else:
    print(7 * x + z)

Python: #標準入力とリストの初期化
a,b,c = map(int,input().split())
count,coin = 0,0

#毎日ログインボーナスを加算し7日ログインしたらボーナスを追加する
while coin < c:
    count += 1
    coin += a
    if count % 7 == 0:coin += b

#かかった日数を出力する
print(count)

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())
C_7=7*A+B
week_day,week_rem,day_0,day_rem=C//C_7*7,C%C_7,C//A,C%A

if C<=A:
    print(1)
elif C<C_7:
    if A*7<week_rem<=C:
        print(7)
    elif 0<day_rem<=A:
        print(day_0+1) 
    elif day_rem==0:
        print(day_0)
    else:
        print(day_0+day_rem)
elif B==0:
    if day_rem==0:
        print(day_0)
    else:
        print(day_0+1)
elif week_rem==0:
    print(week_day)
elif C>C_7:
    if 0<week_rem<=A:
        print(week_day+1)
    elif A*7<week_rem<=C_7:
        print(week_day+7)
    else:
        print(week_day+week_rem)

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

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

i=0;
while c>0:
	i=i+1
	c=c-a
	if i%7==0:
		c=c-b
print(i)

Python: import math
A, B, C=map(int,input().split())
x=C//(A*7+B)
y=C%(A*7+B)

z=math.ceil(y/A)
r=math.ceil(z/(A*7+B))
if z>=7:
    print(x*7+7*r)
else:
    print(x*7+z)

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: a,b,c = map(int,input().split())
s = 0
s += c // (a*7+b)*7
c %= (a*7+b)
s += min(7, (c + a - 1) // a)
print(s)

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: inputText = input().split()
a = int(inputText[0])
b = int(inputText[1])
c = int(inputText[2])
week = a*7+b
weeks = int(c /week)
remain = c % week
totalday = weeks * 7
totalday += int(remain/a)
totalday2 = (int(c/week)+1)*7
if remain%a != 0:
    totalday +=1
print(min(totalday,totalday2))

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())
d=c//(a*7+b)*7
c%=a*7+b
e=0
while c>0 and e<7:
    d+=1
    c-=a
    e+=1
print(d)

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

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

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

Python: A,B,C = map(int,input().split())
ans = 0
n = C // (7*A+B)
r = C %  (7*A+B)
ans += 7*n
if r == 0:
    pass
elif r <= 6*A:
    ans += r//A
    if r % A != 0:
        ans += 1
else:
    ans += 7
print(ans)

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

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

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