#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c,d,e,f,g,h;
    double i;
    cin>>a>>b>>c>>d;
    a=a*60;
    c=c*60;
    e=a+b;
    f=c+d;
    g=f-e;
    h=g/60;
    i=g%60;
    cout<<h<<" "<<i;
    return 0;
}

0 comments

No comments so far...