#include <iostream>
#include <math.h>

int main() {
  float x;
 while (cin >> x) {
   cout << x << " " << sqrt(x) << endl;
   }
 return 0;
}

