def xxx(A,B,C): for i in range(C,-1,-1): k=(A+B*10)-(i*10+C-i) if(k>0 and B*10-k<=i*10): return k return "Impossible" A,B,C=map(int,input().split()) print(xxx(A,B,C))