read1 = input().split(",")
str1 = read1[0].split("=")
str2 = read1[1].split("=")
print(f"{str1[0]}={str2[1]},{str2[0]}={str1[1]}")