#include using namespace std; typedef long long ll; int A, B, C; int ans = 100000; void solve(int v, int a, int b) { int r = a + 10 * b - v; int k = r / 10 + r % 10; if (A + B - (a + b) + k == C) { ans = min(ans, v); } } int main() { cin.tie(0); ios::sync_with_stdio(false); cin >> A >> B >> C; if (A + B <= C) { cout << "Impossible\n"; return 0; } int v = A + 10 * B; for (int a = 0; a <= A; a++) { for (int b = 0; b <= B; b++) { for (int v = 1; v <= a + 10 * b; v++) { solve(v, a, b); } } } if (ans == 100000) { cout << "Impossible\n"; } else { cout << ans << "\n"; } return 0; }