브론즈1 문제
def sugar(n):
answer = 0
if (n in [1, 2, 4, 7]):
return -1
elif (n in [3, 6, 9, 12]):
return n // 3
if (n % 5 == 0):
answer += n//5
else:
if (n % 5 == 1):
answer += (n//5)-1
answer += 2
elif (n % 5 == 2):
answer += (n//5)-2
answer += 4
elif (n % 5 == 3):
answer += (n//5)
answer += 1
elif (n % 5 == 4):
answer += (n//5)-1
answer += 3
return answer
n = int(input())
print(sugar(n))
n = int(input())
cnt = 0
while True:
if (n % 5 == 0):
cnt += (n//5)
print(cnt)
break
n = n - 3
cnt += 1
if (n < 0):
print(-1)
break