//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64
#include
using namespace std;
int main()
{
int number;
cin >> number;
number = 1000 * (number / 1000) + 100 * (number / 10 % 10) + 10 *
(number / 100 % 10) + number % 10;
cout << number;<br>}