def first_repeated_word(str1):
  
  temp = set()
  for word in str1.split():
    if word in temp:
      return word;
    else:
      temp.add(word)
  return 'None'
def first_repeated_word(str1):
    temp = set()
    _word_i = 0
    while _word_i < len(str1.split()):
        word = str1.split()[_word_i]
        if word in temp:
           
            return word
        else:
            temp.add(word)
        _word_i += 1
    return "None"