跳到主要内容
图灵 OJTURING / ONLINE JUDGE

#F1250. Holidays

    ID: 1256 传统题 2000ms 256MiB 尝试: 0 已通过: 0 难度: 1 上传者: 标签>枚举构造贪心数学算法思想入门难度共享题库Codeforces英文题面题目来源题面语言

Holidays

题目描述

A. Holidays
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

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.

Input

The first line of the input contains a positive integer n (1≤n≤1000000)− the number of days in a year on Mars.

Output

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

Examples
Input
14
Output
4 4
Input
2
Output
0 2
Note

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.


题目来源:fps-www.educg.net-codeforce-1-2833.xml.zip;FPS 共享题包,题包内第 732 题。保留原作者与原赛事署名。