#include using namespace std; int a, b, c; int calc(int x) { return x/10 + x%10; } int main(void) { cin >> a >> b >> c; int ans = 1e9; for(int x = 1; x <= a+b*10; x++){ for(int i = 0; i <= a; i++){ for(int j = 0; j <= b; j++){ if(i+j*10 < x) continue; if( (a+b) - (i+j) + calc(i+j*10-x) == c){ cout << x << endl; return 0; } } } } cout << "Impossible" << endl; return 0; }