#include <iostream>
#include <mpi.h>
using namespace std;

int main(int argc, char** argv){
	MPI_Init(&argc, &argv);
	int world_size;
	MPI_Comm_size(MPI_COMM_WORLD, &world_size);
	int world_rank;
	MPI_Comm_rank(MPI_COMM_WORLD, &world_rank);
	cout<<"[MPI NODE] Hello from Supercomputer Node Rank "<<world_rank<<" out of "<<world_size<<" total nodes."<<endl;
	if(world_rank==0){
		cout<<"\n[MANAGER] I am Rank 0. I am usually the boss that hands out the work!"<<endl;
	}
	MPI_Finalize();
	return 0;
}
