a,b,c = map(int,input().split()) okn = a+b*10 for i in range(1,okn+1): if i % 10 <= a: kk = (a-(i%10))+b-(i//10) if kk == c: print(i) exit() if i % 10 != 0: if (i//10)+1 <= b: kk = b-((i//10)+1) + a + (10-(i%10)) if kk == c: print(i) exit() for j in range(2): ryo = i+10*(j+1) if ryo <= a: kk = a-ryo+j+1+b if kk == c: print(i) exit() print("Impossible")