#include <iostream>
using namespace std;
int main() {
int threeDigit;
cin >> threeDigit;
// 提取个位
int units = threeDigit % 10;
// 提取十位
int tens = (threeDigit / 10) % 10;
// 提取百位
int hundreds = threeDigit / 100;
// 组合成对称的六位数
int sixDigit = units * 100000 + tens * 10000 + hundreds * 1000 + hundreds * 100 + tens * 10 + units;
cout << sixDigit << endl;
return 0;
}
/**************************************************************
Problem: 1620
User: fuyijun
Language: C++
Result: Accepted
Time:7 ms
Memory:2072 kb
****************************************************************/