#include<iostream> #include<cmath> #include<conio.h> using namespace std; int main() { double Ek; double v1, v2; const double c = 3 * pow(10, 8); double m = 9.11*pow(10, -31); cin >> Ek; v1 = sqrt(2 * Ek / m); v2 = c*sqrt(Ek*Ek - 2 * Ek*m*c*c) / (Ek + m*c*c); cout << v1 << endl << v2 << endl; }