#include #include int max(int a,int b) { return ab) { int i,j; for(i=c/2/a;i>=0;i--) for(j=0;j<=c/2/b;j++) { if((i*a+j*b)==c/2) {printf("%d %d\n",i*2,j*2);goto loop;} } printf("Impossible\n");goto loop; } else { int i,j; for(j=c/2/b;j>=0;j--) for(i=0;i<=c/2/a;i++) { if((i*a+j*b)==c/2) {printf("%d %d\n",i*2,j*2);goto loop;} } printf("Impossible\n");goto loop; } loop:; } }