EncryptedData1

Time Limit: 1000 ms Memory Limit: 65536 KiB

Problem Description

You have been hired by a company to write a Java application program that will encrypt data so that it may be transmitted more securely. Your program should declare a variable to store a four-digit integer and give it a value from the console window. Your program should encrypt this sequence as follows: replace each digit by (the sum of that digit plus 7) modulus 10. Then swap the first digit with the third, and swap the second digit with the fourth. Your program should display the encrypted data to the console window.

Input

Input a four-digit integer.

Output

Display the encrypted data.

Sample Input

1234
4321

Sample Output

Encrypted data is: 0189
Encrypted data is: 9810

Hint

Source

maxj