user_input = input()
short_names = user_input.split()
short_names = short_names[0:] #allows for input of all elements in dict
del short_names[0] #delete first element
#change the last element to Joe
short_names[-1] = "Joe"
print(short_names)