```cpp
#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,e,f;
cin>>a>>b>>c>>d;
e=c-a;
f=d-b;
if(f<0)
{
f = f + 60;
e = e - 1;
}
cout<<e<<" "<<f;
return 0;
}
```
by zhous @ 2017-09-14 21:38:07