#include "mpi.h"

#include <format>
#include <iostream>

int main(int argc, char *argv[]) {
  MPI_Init(&argc, &argv);

  int rank{}, size{};
  MPI_Comm_size(MPI_COMM_WORLD, &size);
  MPI_Comm_rank(MPI_COMM_WORLD, &rank);

  const auto msg = std::format("Hello from rank {} of {}. Have a nice day :)\n", rank, size);
  std::cout << msg;

  MPI_Finalize();
}
