#include <iostream>
using namespace std;
int main()
{
int reverse_digit, start_num;
cout << "Input a number: " << endl;
cin >> start_num;
if ((start_num < 1) || (start_num > 109))
{
cout << "a number is not should of range!" << endl;
return 0;
}
cout << "Reverse number: ";
while(start_num != 0)
{
reverse_digit = start_num % 10;
start_num /= 10;
cout << reverse_digit;
}
cout << endl;
return 0;
}