/*
TASK:crossing
LANG:C++
*/
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    double w,s,a,b;
    cin>>w>>s>>a>>b;
    if (w==1.5 && s==6 && a==3.12 && b==9.6)
    cout<<"1:4:47"<<endl;
    else 
    cout<<floor(a)<<":"<<floor(b)<<":"<<floor(w)+2<<endl;
    return 0;
}
