num = input().replace("=", " ").replace(",", " ").split(" ") m1, m2, m3, m4 = num print("%s=%s,%s=%s" % (m1, m4, m3, m2))