1705: 【CSP基础】加密四位数█

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:11 Solved:8

Description

某军事单位用 lns="http://www.w3.org/1998/Math/MathML">4 位整数来传递信息,传递之前要求先对这个 lns="http://www.w3.org/1998/Math/MathML">4 位数进行加密。加密的方式是每一位都先加上 lns="http://www.w3.org/1998/Math/MathML">5 然后对 lns="http://www.w3.org/1998/Math/MathML">10 取余数,再将得到的新数颠倒过来。

例如:原数是 lns="http://www.w3.org/1998/Math/MathML">1379 ,那么每位加 lns="http://www.w3.org/1998/Math/MathML">5 对 lns="http://www.w3.org/1998/Math/MathML">10 取余数的结果为 lns="http://www.w3.org/1998/Math/MathML">6824 ,然后颠倒该数,得到新数:lns="http://www.w3.org/1998/Math/MathML">4286

再比如:原数是 lns="http://www.w3.org/1998/Math/MathML">2570,那么每位加 lns="http://www.w3.org/1998/Math/MathML">5 对 lns="http://www.w3.org/1998/Math/MathML">10 取余数的结果为 lns="http://www.w3.org/1998/Math/MathML">7025 ,然后颠倒该数,得到新数: lns="http://www.w3.org/1998/Math/MathML">5207 。

请根据加密要求,写出加密算法!

Input

加密前的 lns="http://www.w3.org/1998/Math/MathML">4 位数。

Output

加密后的结果

Sample Input Copy

1379

Sample Output Copy

4286