#include<stdio.h>
int main(){float x,y,u,v,p,q;while(scanf("%f,%f,%f,%f,%f,%f",&x,&y,&u,&v,&p,&q)+1){float a=u-x,b=v-y,c=x*v-u*y,d=a*a,e=b*b,f=a*b,g=2/(d+e),h=d-e;printf("%.9f %.9f\n",g*(p/2*h+q*f+b*c),g*(-q/2*h+p*f-a*c));}}
