https://www.acmicpc.net/problem/2839
n=int(input()) t=0 while not n%5==0: n-=3 if n<0: t=-1 break else: t+=1 if n>0: t+=int(n/5) print(t)