#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int A, B, C; cin >> A >> B >> C; int res = 1 << 28; for (int a = 0; a < A + 1; a++) { for (int b = 0; b < B + 1; b++) { for (int x = 1; x < a + b * 10 + 1; x++) { int y = abs(x - (a + b * 10)); if ((A - a) + (B - b) + (y % 10) + y / 10 == C) { res = min(res, x); } } } } if (res == (1 << 28)) { cout << "Impossible" << '\n'; } else { cout << res << '\n'; } return 0; }