We want to send a postcard by mail. We need to stamp worth cents. Stamps have values 7 and 4 cents. As space is limited we want to know the minimum number of stamps we need to put on the postcard, without losing a cent.
The input is a sequence of integer numbers. Each number in the sequence is greater than .
For each integer in the input, a line with two numbers and such that and is minimum among all possible choices.
Input
20 31 53 127
Output
0 5 1 6 7 1 17 2