#include <stdio.h>

int main(void) {
	int x,y,z=0,w=0;
    for(;~scanf("%d%d",&x,&y);z^=x)w^=y;
    printf("%d,%d",z,w);
	return 0;
}