#include <iostream>
#include <cmath>
using namespace std;
double CalDistance();
void Init();
struct Coordinate{
double startx, starty, endx, endy;
};
Coordinate coordinate[110];
int x, y, len = 0;
int main()
{
double Dis = 0.0, time = 0.0;
int spend;
while (cin >> x >> y)
{
Init();
Dis = CalDistance();
time = Dis * 60 * 2.0 / 20000.0;
spend = floor(time + 0.5);
//time += Dis / 50000.0;
cout << spend / 60 << ":" << spend % 60<< endl;
time = 0.0;
}
return 0;
}
void Init()
{
while (cin >> coordinate[len].startx >> coordinate[len].starty >> coordinate[len].endx >> coordinate[len].endy)
++len;
return;
}
double CalDistance()
{
double distance = 0.0;
for (int i = 0; i < len; ++i)
{
distance += sqrt((coordinate[i].endx - coordinate[i].startx) * (coordinate[i].endx - coordinate[i].startx) + (coordinate[i].endy - coordinate[i].starty) * (coordinate[i].endy - coordinate[i].starty));
}
return distance;
}