import java.util.Scanner;
public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int[] postDeng = new int[2];
        int postDou = 0;
        int count = 0;
        for(int i = 0 ; i < str.length() ; i++) {
            if(str.charAt(i) == '=') {
                postDeng[count++] = i;
            }
            if(str.charAt(i) == ',') {
                postDou = i;
            }
        }
        String str1 = str.substring(0,postDeng[0]+1);              // 截取a=
        String str2 = str.substring(postDou+1,postDeng[1]+1);      // 截取b=
        String str3 = str.substring(postDeng[0]+1,postDou);        // 截取1
        String str4 = str.substring(postDeng[1]+1,str.length());   // 截取2
        System.out.println(str1 + str4 + "," + str2 + str3);
    }
}