#include<stdio.h>
int main(void)
{
  int a,b,c,x;
  int unused __attribute__((unused));
  unused = scanf("%d %d %d",&a,&b,&c);
  x=a+b+c;
  a=x-a-b;
  b=x-b-c;
  c=x-c-a;
  printf("%d %d %d",a,b,c);
  return 0;
}
