#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 [host]bs[N], b=1;
        bs[] = b;
        b = bs[];
      }

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