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

Python: A,B,C=map(int,input().split())
point=0
if C>7*A+B:
    warareru=C%((7*A)+B)
    ans=C//((7*A)+B)
    while warareru>0:
        point+=1
        if point%7!=0:
            warareru-=A

        else:
            warareru-=A+B


    print(ans*7+point)
elif C>=7*A and C<=7*A+B:
    print("7")
else:
    if C%A==0:
        print(C//A)
    else:print((C//A)+1)

Python: # -*- coding: utf-8 -*-
"""
Social Game
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0652

"""
import sys
from math import ceil

def solve(a, b, c):
    q, r = divmod(c, (a*7 + b))
    return q * 7 + min(ceil(r / a), 7)


def main(args):
    a, b, c = map(int, input().split())
    ans = solve(a, b, c)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Python: import math
a,b,c=map(int,input().split())
s=a*7+b
w=c//s
if c%s==0:
  d=0
else:
  d=min(math.ceil((c%s)/a),7)
print(7*w+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: import math
a, b, c = map(int, input().split())

n = 0

while True:
    n += 1
    if (a * n + math.floor(n / 7) * b >= c):
        break

print(n)

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

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

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: def main():
    a,b,c = map(int,input().split())
    target = c
    daily_coin = a
    weekly_coin = b
    weekly_daily_total_coin = 7 * a + b
    counter = 0

    counter += (target // weekly_daily_total_coin) * 7
    target %= weekly_daily_total_coin
    #print(counter,target)
    temp = 0
    if target % daily_coin != 0 :
        temp += 1
    counter += min(target // daily_coin + temp,7)
    print(counter)



if __name__ == '__main__':
    main()

Python: #! /usr/bin/env python
# -*- coding: utf-8 -*-
import sys


def main():
    day = 0
    data = map(int,input().split())
    data = list(data)
    while( data[2] > 0):
        day = day +1
        data[2] -= data[0]
        if(day % 7 == 0):
            data[2] -= data[1]
    print(day)

if __name__ == '__main__':
    main()

Python: A, B, C = map(int, input().split())
i = 0
coin = 0
while i < 10**6:
    if coin >= C:
        break
    
    i = i + 1
        
    coin = coin + A
    if i%7 == 0:
        coin = coin + B
    
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())
S=0
i=0
while C>S:
    S=S+A
    if C>S and i+1>=7 and (i+1)%7==0:
        S=S+B
    i=i+1
print(i)

Python: A, B, C = map(int,input().split())
import math
n = 0
while True :
    x = A*n+(B*math.floor(n/7))
    if x >= C :
        break
    n += 1
print(n)

Python: day=0
sum=0

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

while True:
    day+=1
    
    if day%7==0:
        sum+=(a+b)
    else:
        sum+=a
    
    if sum>=c:
        print(day)
        break

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

week_value = A * 7 + B

weeks = C // week_value
rest = C % week_value

day = 0
if rest != 0 and A * 7 < rest:
    day = 7
else:
    day = rest // A
    if rest % A != 0:
        day += 1

print(weeks * 7 + day)

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