#include<stdio.h>
struct complex
{
int first;
int second;
};
void main()
{ struct complex num1,num2;
printf("please input your complex number!\n\n");
printf("please input first pairs!\n");
scanf("%d,%d",&num1.first,&num1.second);
printf("\n");
printf("please input second pairs!\n");
scanf("%d,%d",&num2.first,&num2.second);
if(num1.second==num2.first)
{
printf("complex is <%d,%d>\n",num1.first,num2.second);
}
else
printf("complex is %d",0);
getch();
}