#include <stdio.h> int main(void) { long int a,b,c,t=10,i=0; scanf("%ld=%ld",&a,&c); while (a/t) { b=a%t; if (a/t+b==c) { printf("%ld+%ld=%ld\n",a/t,b,c); t*=10;i++; } else t*=10; } if (i==0) puts("Impossible!"); return 0; } /************************************************************** Problem: 1114 User: admin Language: C Result: Accepted Time:10 ms Memory:1144 kb ****************************************************************/