#include using namespace std; typedef long long int ll; typedef pair pll; #define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i)) #define REP(i, n) FOR(i, n, 0) #define OF64 std::setprecision(10) const ll MOD = 1000000007; const ll INF = (ll)1e15; int main() { ll A, B, C; cin >> A >> B >> C; ll sum = A + 10 * B; ll min = INF; { ll c = A + B - C; if (c >= 0) { ll a = std::min(A, c); c -= a; ll b = std::min(B, c); min = a + b * 10; } } FOR(i, sum + 1, 0) { ll b = (sum - i) / 10; ll a = (sum - i) % 10; if (a + b == C) { min = std::min(i, min); break; } } if (min == INF) cout << "Impossible" << endl; else cout << min << endl; return 0; }