Problem Q: 分跳绳2(python)

Problem Q: 分跳绳2(python)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

SubmitProblemList

Description

体育室里有若干根跳绳,如果要平均分给8个班且无剩余,最少要去掉几根跳绳?每个班分到几根跳绳?

Input

一个整数,代表跳绳的数量

Output

一行两个数字,空格隔开,第一个数字代表去掉几根跳绳,第二个数字代表每个班分到几个跳绳

Sample Input Copy

58

Sample Output Copy

2 7