#include "stdio.h"
void main(){
scanf("%f,%f,%f,%f",&a,&b,&c,&d);
printf("%fn",2*(a+b-c));
printf("%fn",(a-b+c)*(a-b-c));
printf("%fn",(a-b-c)*(a+b+c));
printf("%fn",(a+b-c)*(a-b+c));
printf("%fn",(a-b+c-d)*(a-b-c+d));
#include "stdio.h"
void main(){
scanf("%f,%f,%f,%f",&a,&b,&c,&d);
printf("%fn",2*(a+b-c));
printf("%fn",(a-b+c)*(a-b-c));
printf("%fn",(a-b-c)*(a+b+c));
printf("%fn",(a+b-c)*(a-b+c));
printf("%fn",(a-b+c-d)*(a-b-c+d));