#include
using namespace std;
int main()
{
int a;
do {
cout << "Input number: ";</p>
cin >> a;
if ((a > 999) || (a < 100))
cout << "Input error! Try again" << endl;</p>
} while((a > 999) || (a < 100));
a = a % 10 + (a / 100) * 10 + (a % 100 - a % 10) * 10;
cout << "The given number is " << a;</p>
}