#include <mpc.h>

#define N 5

int [*]main() {
  net SimpleNet(N) mynet;

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

    Barrier:
      {
        int b=1;
        b[+];
      }

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