def METHOD_NAME(self):
    # read from stdin
    if self.rank == 0:
        input_str = ''
        while True:
            line = sys.stdin.readline()
            line = line.rstrip('\n')
            input_str += line
            if '@data_received@' in input_str:
                break