/***************************************************
Length of Vectors
Write a program that reads in a vector in the form
(x,y), and writes out the length of the vector.
In high school math, a vector is usually a pair
(x,y), where x and y are real numbers. The length
or magnitude of a vector is
_________
\/x^2 + y^2.
***************************************************/
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
// read pair
char c;
double x, y;
cin >> c; // reads (
cin >> x;
cin >> c; // reads ,
cin >> y;
cin >> c; // reads )
// compute magnitude
double m;
m = sqrt(x*x + y*y);
// write out result
cout << "The magnitude is " << m << endl;
return 0;
}