import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str=in.nextLine();
        String[] s=str.split(",");
        String a1=s[0];
        String b1=s[1];
        String a=a1.substring(2);
        String b=b1.substring(2);
        String c;
        c=a;
        a=b;
        b=c;
        System.out.println("a="+a+","+"b="+b);
    }
}