#include<iostream> int main(){ int a,b,c,d,e,f,g,h,i; scanf("%d %d %d",&a,&b,&c); d=a/3; e=b/3; f=c/3; g=e+f+d-d-d; h=d+f+e-e-e; i=e+d+f-f-f; printf("%d %d %d",g,h,i); return 0; }