Cerca amb finestra

Given a sequence of integer numbers, print the first pair x and y with
exactly an integer in the middle, and such that the remainder of divide
x + y by 100 is 1.

Input

Input is a sequence of, at least, three integer numbers. In absolute
value, none of them is greater than 1000000.

Output

Your program must print the first pair of integer numbers x and y with
exactly an integer in the middle in the input sequence, and such taht
the remainder of divide x + y by 100 is 1. If this pair does not exist,
indicate it. Follow the format of the examples.

Observation

Be careful with the modulo of negative numbers!

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T12:18:48.326Z

© Jutge.org, 2006–2026.
https://jutge.org
