|
|||
PIN
After decoding the encrypted text, you were able to determine the
coordinates of the new secret hideout of the terrorists. However, it
was not a big surprise that you encountered a PIN pad when you arrived
to the hideout. The numbers 1-9 are arranged in the PIN pad in a 3x3
array (so the first row contains the numbers 1,2,3 from left to right,
the second row contains the numbers 4,5,6 and the last row contains the
numbers 7,8,9). The number 0 is directly below the number 8 on the
pad. InputThe input consists of a single line, closed with an end of line character. The line contains a string of at least 1 and at most 8 characters n whose every character is a digit between 0 and 9 (both endpoints are included and repetitions are allowed). This "number" is the observed PIN code. Important note that the PIN code can start with the number 0. OutputThe output is a single line which contains the possible PIN codes created by using the above rule. Each code should be separated from the next with a single space character and the codes should be in ascending order. Every number should only appear at most once. Example
Input:
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |