#include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
int input = 123;
int temp, r, output = 0;
temp = input;
while (temp > 0) {
r = temp % 10;
temp = temp / 10;
output = output * 10 + r;
}
cout << "Original Number : " << input << "\n";
cout << "Reverse Number : " << output << "\n";
return 0;
}