Files
PS/boj/2839.py
Gyubin Han 2600340c03 first commit
from old repository to a new repository
2024-04-30 16:59:10 +09:00

16 lines
206 B
Python

from sys import stdin
n=int(stdin.readline().rstrip())
res=0
while n>0:
if n%5==0:
res+=n//5
break
n-=3
res+=1
if n==1 or n==2:
res=-1
break
print(res)