Coroană pls? ;D
#include <iostream>
using namespace std;
int main()
{
int A, B, C;
cin >> A >> B >> C;
int N = A;
do {
N = N * 10 + (N < 0 ? -B % 10 : B % 10);
B /= 10;
} while (B);
do {
N = N * 10 + (N < 0 ? -C % 10 : C % 10);
C /= 10;
} while (C);
cout << N << ' ' << N * 2;
return 0;
}