#include <stdio.h> #include <math.h> int main(){ int n; int arr[3]; int v; int v2=1; if (scanf("%d",&n)!=EOF){ // printf("n=%d\n",n); for (int i=0;i<3;i++){ v = n%10; arr[i] = v; n = n/10; v2 = v2*10; // printf("%d %d %d\n",i,v,n); } v2 = v2/10; int s=arr[0]*v2; for (int i=1;i<3;i++){ v2 = v2/10; s = s + arr[i]*v2; } printf("%d",s); }else{ printf("input wrong"); } return 0; }