You are given a three-digit number made of digits from 1 to 9. You need to rearrange the digits in two different ways and print the new numbers you create from those arrangements.
Input: 379
379
Output: 793 937
793 937
Input: 919
919
Output: 199 991
199 991