#include using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int g1, g10; g1 = 0; g1 = 0; int i = 1; int otsuri; while (true) { otsuri = a + (b * 10) - i; g1 = otsuri % 10; g10 = (otsuri - g1) / 10; if (c == g1 + g10) { cout << a + (b * 10) - otsuri; return 0; } if (otsuri == 0) { break; } i++; } cout << "Impossible" << endl; return 0; }