#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
string txt = to_string(a + b + c);
cout << txt << endl;
for (int i = txt.length() - 1; i >= 0; i--) {
cout << txt[i];
}
return 0;
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
string txt = to_string(a + b + c);
cout << txt << endl;
for (int i = txt.length() - 1; i >= 0; i--) {
cout << txt[i];
}
return 0;
}