Files
CodeObject/zeta/py/completed/2839.py
2025-05-07 04:44:30 +09:00

9 lines
127 B
Python

N = int(input())
a = 0
while (N%5+5*a)%3 != 0 :
a+=1
if N//5-a < 0:
print(-1)
else:
print((N%5+5*a)//3 + (N//5-a))