Showstopper#793

Showstopper

1 second
64 megabytes
Very easy

Data-mining huge data sets can be a painful and lengthy process if we are not aware of subtle patterns within those data sets.

A reputable company has recently discovered a small bug in their hardware video processing solution and is trying to create a software workaround. To achieve maximum performance, they use their chips in pairs, and all data objects in memory should have an even number of references. Under certain circumstances, this rule is violated, and exactly one data object is referred to by an odd number of references. They are ready to launch the product, and this is their only showstopper. They need you to help them resolve this critical issue in the most efficient way.

Can you help them?

Input

The input file consists of several data sets separated by one or more empty lines.

Each data set represents a sequence of -bit positive integers (references) stored in a compressed format.

Each line of an input set contains three single-space separated -bit positive integers , which represent the following sequence of references: , X + Z, X + 2Z, X + 3Z, , X + KZ, (for all X + KZ \leq Y).

Your task is to analyze the input data and for each set determine whether the data is corrupted, which reference occurs an odd number of times, and count the occurrences of that reference.

Output

For each input data set, print to the standard output a new line of text with either no corruption (in lowercase) or two integers separated by a single space: the first is the reference that occurs an odd number of times, and the second is the count of that reference.

Examples

Example 1

Loading
Loading