using System;
class Program{
    static void Main(){
        string[] s=Console.ReadLine().Split(",");
        Console.WriteLine(
            s[0].Split("=")[0]+"="+s[1].Split("=")[1]+","+
            s[1].Split("=")[0]+"="+s[0].Split("=")[1]);
    }
}