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