#include<iostream>
using namespace std;
int main()
{
int n,right_digit,sum(0);
cout<<"enter the number:";
cin>>n;
sum+=n;
cout<<"the sum is:"<<sum<<endl;
cout<<"the number in reverse order is:";
do
{
right_digit=n%10;
cout<<right_digit;
n=n/10;
}
while(n!=0);
cout<<endl;
}