code: def gets(self):
          
          ret = self.stdin.readline()
          if ret == '':
              raise EOFError  # To break out of EOF loop
          return ret.rstrip('\n')
docs: Read line from stdin.
  
          The trailing newline will be omitted.
          :return: string: