Integer
Integer-20
Integer-21
Integer-22
~/algor $ cat problems/integer/write-a-digit-on-the-left-and-on-the-right
Write a digit on the left and on the right
Easy
1000 ms
64 MB
14%
A three-digit positive integer and a digit are given. Find the number obtained by writing to the left of and the number obtained by writing to the right of .
Input
One line with two positive integers: and .
Output
One line with two positive integers: the number with written on the left and the number with written on the right.
Note
Examples
Input #1
123 7
Output #1
7123 1237
Input #2
900 1
Output #2
1900 9001