Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/integer/write-a-digit-on-the-left-and-on-the-right

Write a digit on the left and on the right

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Easy 1000 ms 64 MB 14%
Share

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 .

One digit is written to the left and to the right of a three-digit number; two new numbers are formed

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

Sign in to submit a solution

Signing up is free and takes a minute.