LearnPy Hub
← Arena
EasyRating 900

Weekends on Mars

On Mars a week has 5 work days followed by 2 days off, but the year may start on any day. A year has n days. Print the fewest and the most days off possible.

Input

One integer n (1 ≤ n ≤ 10⁶).

Output

Two integers.

Sample 1

Input
14
Output
4 4

Sample 2

Input
2
Output
0 2
solution.py
Output appears here
Weekends on Mars · Python Arena problem · LearnPy Hub