#include <iostream>
using namespace std;
int main() {
int sum;
cin>>sum;
int coins[]={1,3,5};
int dp[1000000]={0};
dp[0]=0;
for(int i=1;i<=sum;i++)
{
for(int j=0;j<3;j++)
{
if(coins[j]<=i)
dp[i]=dp[i-coins[j]]+1;
}
}
cout<<dp[sum]<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCQlpbnQgc3VtOwoJCWNpbj4+c3VtOwoJCWludCBjb2luc1tdPXsxLDMsNX07CgkJaW50IGRwWzEwMDAwMDBdPXswfTsKCQlkcFswXT0wOwoJCWZvcihpbnQgaT0xO2k8PXN1bTtpKyspCgkJewoJCSAgZm9yKGludCBqPTA7ajwzO2orKykKCQl7CgkJCWlmKGNvaW5zW2pdPD1pKQoJCQlkcFtpXT1kcFtpLWNvaW5zW2pdXSsxOwoJCX0KCSAgIH0KCSAgICAgY291dDw8ZHBbc3VtXTw8ZW5kbDsKCQoJcmV0dXJuIDA7Cn0=