Sarah, aged 5, has lots and lots of stuffed toys. They are supposed to be kept in her bedroom, but they do not always make it back each night.
When she gets into bed at night, she takes the stuffed toys that are in her room and puts them on the spare bed. She likes to give each stuffed toy a friend for the night, so she arranges them into pairs. Sometimes the number of toys is odd, so she has to make one group of 3.
Your task is to write a program that reports how Sarah's toys are arranged on a particular night.
The input consists of several lines, each representing one night in Sarah's house. Each line contains 2 whole numbers separated by a space. The first number is how many stuffed toys she owns at the time. The second number is how many of those toys are left around the house and do not make it back to her bedroom that night, so the number of toys in her room is the first number minus the second.
The last line is 0 0. Do not process this line.
For each night, output 2 numbers separated by a space. The first number is how many pairs there are. The second number is either 0 or 1: 0 means there was no group of 3, and 1 means there was one group of 3.
If the number of toys in the room is even, they form only pairs. If it is odd and at least 3, one group of 3 is formed and the rest are pairs. If there is exactly 1 toy, it cannot be paired and there is no group of 3, so both numbers are 0.