#include <stdio.h> #include <stdlib.h> int main() { int x,y,z,a,b,c; while(scanf("%d %d %d",&x,&y,&z) !=EOF) { a=(z+x-2*y)/2; b=(4*y-3*x-z)/2; c=x; printf("%d %d %d ",9*a+3*b+c,16*a+4*b+c,25*a+5*b+c); } return 0; }
#include <stdio.h> #include <stdlib.h> int main() { int x,y,z,a,b,c; while(scanf("%d %d %d",&x,&y,&z) !=EOF) { a=(z+x-2*y)/2; b=(4*y-3*x-z)/2; c=x; printf("%d %d %d ",9*a+3*b+c,16*a+4*b+c,25*a+5*b+c); } return 0; }