user_str = input('Enter a string: ') max = chr( 0 ) for char in user_str: if char > max: max = char print(max)