#include <bits/stdc++.h>
int calc_hypo(int idx, int idy) {
return (idx>0 && idy>0) ? sqrt(pow(idx,2)+pow(idy,2)) : 0;
}
int main(int argc, char* argv[]) {
//Get input from user.
int x,y;
std::cin >> x >> y;
//Return the result.
std::cout << "The result is " << calc_hypo(x,y) << std::endl;
return 0;
}