Holidays

题意翻译

# 题目描述 在火星上,一年正好是n天(火星上没有闰年)。但是火星人和地球人有同样的周数——5个工作日,然后是2天的假期。你的任务是确定火星上每年的最小休假天数和最大休假天数。 # 输入格式: 输入的第一行包含一个正整数n(1<=n<=1000000),即火星上一年的天数。 # 输出格式: 输出两个整数——火星上每年可休假的最小天数和最大天数。 # 样例解释 样例1:火星上一年14天,因此假期刚好只能是4天(两周有4天休息)。 样例2:火星上一年2天,可以是工作日,也可以是休息日。

题目描述

On the planet Mars a year lasts exactly $ n $ days (there are no leap years on Mars). But Martians have the same weeks as earthlings — 5 work days and then 2 days off. Your task is to determine the minimum possible and the maximum possible number of days off per year on Mars.

输入输出格式

输入格式


The first line of the input contains a positive integer $ n $ ( $ 1<=n<=1000000 $ ) — the number of days in a year on Mars.

输出格式


Print two integers — the minimum possible and the maximum possible number of days off per year on Mars.

输入输出样例

输入样例 #1

14

输出样例 #1

4 4

输入样例 #2

2

输出样例 #2

0 2

说明

In the first sample there are $ 14 $ days in a year on Mars, and therefore independently of the day a year starts with there will be exactly $ 4 $ days off . In the second sample there are only $ 2 $ days in a year on Mars, and they can both be either work days or days off.