设xyz表示3位整数,其数字从左到右为x、y、z。
给定一个3位数的整数abc,其数位上的数字均不为0,请求解:abc+bca+cab。
约束条件
abc是一个3位数的整数,其数位上的数字均不为0。
输入
输入来自以下格式的标准输入:
abc
输出
打印答案。
Time Limit: 2 sec / Memory Limit: 1024 MB
Score : 100100 points
Problem Statement
Let xyzxyz denote the 33-digit integer whose digits are xx, yy, zz from left to right.
Given a 33-digit integer abcabc none of whose digits is 00, find abc+bca+cababc+bca+cab.
Constraints
-
abcabc is a 33-digit integer abcabc none of whose digits is 00.
Input
Input is given from Standard Input in the following format:
abcabc
Output
Print the answer.