#include<stdio.h>
struct fenshu
{
int above;
char line;
int below;
};
void sub(struct fenshu a,struct fenshu b)
{
struct fenshu c;
c.above=a.above-b.above;
printf("%d%c%d",c.above,a.line,a.below);
}
int main()
{
struct fenshu a,b;
void sub(struct fenshu,struct fenshu);
scanf("%d%c%d",&a.above,&a.line,&a.below);
scanf("%d%c%d",&b.above,&b.line,&b.below);
sub(a,b);
return 0;
}