#include <stdio.h>

int boogie(int a, int b, int c)
{
   return (a + b) - c;
}

int main()
{
   int x, y, z;

   printf("Enter three numbers: ");
   scanf("%d%d%d", &x, &y, &z);
 
   x = boogie(x, y, z);

   printf("Boogie of %d and %d and %d: %d\n", x, y, z, boogie(x, y, z));
   printf("Boogie of %d and %d and %d: %d\n", y, z, x, boogie(y, z, x));
   printf("Boogie of %d and %d and %d: %d\n", x, z, y, boogie(x, z, y));

   return 0;
}