Minimal Coins#267

Minimal Coins

1 second
64 megabytes
Very easy (≈850)

You have 1-cent coins, but it is very difficult to spend them because counting them takes your time. You have decided to exchange these coins for 2 and 5 cent coins. What is the minimum total number of 2 and 5 cent coins you need?

Input

The input contains an integer (7 \le n \le 1000000)

Output

Output the answer to the problem.

Examples

Example 1

Loading
Loading