1945 买巧克力


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

“六 一”儿童节到了,店老板为了吸引更多的小朋友买巧克力而用礼券促销:每块巧克力1元钱,每买1块巧克力可获赠1张礼券,每7张礼券可兑换1块巧克力(兑换的巧克力同样可获礼券)。现在小红手里有若干元钱,能尽可能获得多少块巧克力,余下多少张礼券呢。帮忙,帮忙。

Input

若干个整数n(0<n<10000),以0结束。

Output

对于每个n,输出一行巧克力块数和礼券张数,中间加逗号。

Sample

Input

2 89 987 45 0

Output

2,2
103,5
1151,3
52,3

Source: qn


Comments

There are no comments at the moment.