# Input
L = ['goat', 'ant', 'bat', 'zebra', 'monkey']

# Processing

# Arun

L.append('buffalo')
#L.replace('goat', 'giraffe')
L.remove('goat')
L.append('giraffe')
L.sort(reverse=True)




# Output

print(L)

# ['zebra', 'monkey', 'giraffe', 'buffalo', 'bat', 'ant']
