12012 - Shift and shift   

Description

Given a 4-digit positive integer a, do the following operation

  • Swap the left 2 digit and the right 2 digit of a, to obtain b.
  • Let c = a * b.

For example, let a = 1234.

  • b is 3412
  • c is 4210408

Please print the value of c.

Input

An positive integer a between 1000 and 9999 (contains exactly 4 digits).

Output

Print the value of c.

Note that you need to print ‘\n’ at the end of the output.

Sample Input  Download

Sample Output  Download

Tags




Discuss