https://www.acmicpc.net/problem/2839
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner s= new Scanner(System.in);
int n=s.nextInt();
int t=0;
while(n%5!=0){
n-=3;
if(n<0){
t=-1;
break;
}
else t++;
}
if(n>0) t+=n/5;
System.out.print(t);
}
}