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