Problem2315--初级——四位数的差

2315: 初级——四位数的差

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

输入一个四位数,将这个数各位数字倒序合成一个新数,输出原数和新数的差。

Input


Output


Sample Input Copy

4321

Sample Output Copy

3087

HINT


Source/Category