#include <mpc.h>

#define N 5

int [*]main() {
  net SimpleNet(N) mynet;
  int [mynet]my_coordinate;
  
  my_coordinate = I coordof mynet;
  if(my_coordinate%2==0)
    [mynet]MPC_Printf("Hello, even world!\n");

  MPC_Global_barrier();

  if(my_coordinate%2==1)
    [mynet]MPC_Printf("Hello, odd world!\n");
}