




import functools







def SCREAMING_SNAKE_CASE    (	lowercase_			,    lowercase_						)       ->	int:



       """simple docstring"""

       A__							=   len(lowercase_						)
       A__							=   len(lowercase_						)

       @functools.cache
       def min_distance(lowercase_			,    lowercase_						) -> int:
              # if first word index is overflow - delete all from the second word
              if indexa >= len_worda:
                     return len_worda - indexa
              # if second word index is overflow - delete all from the first word
              if indexa >= len_worda:
                     return len_worda - indexa
              A__							=   int(worda[indexa] != worda[indexa]						)  # current letters not identical
              return min(
                  1 + min_distance(indexa + 1			,    lowercase_						)			,    1 + min_distance(lowercase_			,    indexa + 1						)			,    diff + min_distance(indexa + 1			,    indexa + 1						)			,    )

       return min_distance(0			,    0						)


if __name__ == "__main__":
  import doctest

  doctest.testmod()








def SCREAMING_SNAKE_CASE    (	lowercase_						)       ->	str:



       """simple docstring"""

       return " ".join(
           ''''''.join(word[::-1]						) if len(lowercase_						) > 4 else word for word in sentence.split()						)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  print(reverse_long_words("""Hey wollef sroirraw"""))


