from mpi4py import MPI
import socket

comm = MPI.COMM_WORLD
rank = comm.Get_rank()  
size = comm.Get_size()  
hostname = socket.gethostname()

print(f"Hello from node {hostname}, I am job {rank} out of {size} in total. ")

