def fx(): A,B,C=map(int,input().split()) for a in range(C+1): if a>A+9: break z=A+B*10-a-(C-a)*10 if z>=0: return z return "Impossible" print(fx())