A, B, C = map(int, input().split()) X = 10*B + A for i in range(X): if (X-i)//10 + (X-i)%10 == C: print(i) break else: print('Impossible')