a = int(input())
b = int(input())
n = int(input())
total_week = 5 * a + 2 * b
full_weeks = n // total_per_week
ans = full_weeks * total_week)
days = full_weeks * 7
for i in range(1, 8):
if i <= 5:
ans += a
else:
ans += b
days += 1
if ans >= n:
break
print(days)