#include #define rep(i, a, n) for(int i = a; i < n; i++) #define int long long using namespace std; typedef pair P; const int mod = 1000000007; const int INF = 1e18; signed main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; for(int i = 1; i <= a + 10 * b; i++){ for(int j = 0; j <= a; j++){ for(int k = 0; k <= b; k++){ int tmp = j + 10 * k - i; if(tmp < 0) continue; int ra = tmp % 10; int rb = tmp / 10; int sum = a + b - j - k + ra + rb; if(sum == c){ cout << i << endl; return 0; } } } } cout << "Impossible" << endl; }