#P1811. Holidays
Holidays
Holidays
题面翻译
题目描述
在火星上,一年正好是n天(火星上没有闰年)。但是火星人和地球人有同样的周数——5个工作日,然后是2天的假期。你的任务是确定火星上每年的最小休假天数和最大休假天数。
输入格式:
输入的第一行包含一个正整数n(1<=n<=1000000),即火星上一年的天数。
输出格式:
输出两个整数——火星上每年可休假的最小天数和最大天数。
样例解释
样例1:火星上一年14天,因此假期刚好只能是4天(两周有4天休息)。
样例2:火星上一年2天,可以是工作日,也可以是休息日。
题目描述
On the planet Mars a year lasts exactly 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 ( ) — 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
样例输入 #1
14
样例输出 #1
4 4
样例 #2
样例输入 #2
2
样例输出 #2
0 2
提示
In the first sample there are days in a year on Mars, and therefore independently of the day a year starts with there will be exactly days off .
In the second sample there are only days in a year on Mars, and they can both be either work days or days off.