#include<iostream>
#include<cmath>
using namespace std;
int main()
{
// Get north/east distances
float north, east;
cout << "How far north? ";
cin >> north;
cout << "How far east? ";
cin >> east;
// Output distance
cout << "Straight distance "
<< sqrt(pow(north,2)+pow(east,2))
<< endl;
return 0;
}