def convert_move(move):
conversion = {
"R": "R'",
"R'": "R",
"R2": "R2",
"L": "L'",
"L'": "L",
"L2": "L2",
"U": "U'",
"U'": "U",
"U2": "U2",
"D": "D'",
"D'": "D",
"D2": "D2",
"F": "B'",
"F'": "B",
"F2": "B2",
"B": "F'",
"B'": "F",
"B2": "F2"
}
return conversion.get(move, move)
user_input = input("Enter moves separated by spaces: ")
moves = user_input.split()
converted_moves = [convert_move(move) for move in moves]
print("Converted moves:")
print(" ".join(converted_moves))