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: a,b,c=map(int,input().split())

if -(-c//a)<=7:
    print(-(-c//a))
elif b+7*a>=c:
    print('7')
else:
    d=c//(7*a+b)
    e=c%(7*a+b)
    if (7*a+b)-e>=b:
        f=-(-e//a)
        print(d*7+f)
    else:
        print(7*d+7)

Python: import math
A,B,C = map(int, input().split())
x=C//(7*A+B)
y=C-(7*A+B)*x
if y <= A*6:
    print(x*7+math.ceil(y/A))
else:
    print(x*7+7)

Python: inputs = input().split(" ")

print(math.ceil(inputs[2]/(inputs[0]+(inputs[1]/7))))

Python: def main():
    a, b, c = map(int, input().split())
    w = a * 7 + b
    ans = c // w * 7
    c = c % w
    d = c // a
    if c % a > 0:
        d += 1
    if d > 7:
        d = 7
    ans += d
    print(ans)

if __name__ == '__main__':
  main()

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