#define _CRT_SECURE_NO_DEPRECATE
#include <iostream>
#include <cmath>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <cstring>
#include <ctime>
#include <string>
using namespace std;
#define inf 1000000000
#define ll long long
#define eps 1e-9
#define VI vector<int>
#define pb push_back
#define L(s) (int)((s).size())
#define all(s) (s).begin(), (s).end()
#define pii pair<int, int>
#define mp make_pair
#define x first
#define y second
#define ull unsigned ll
int main() {
int T1 = 0, T2 = 0;
double s1 = 0, s2 = 0;
for(double phi = 0; phi < 2 * 2 * acos(0.); phi += 0.01)
for(double r = 0; r < 1; r += 0.01) {
++T1; s1 += r * r; // * cos^2(phi) + sin^2(phi)
}
for(double x = -1; x < 1; x += 0.01)
for(double y = -sqrt(1. - x * x); y < sqrt(1. - x * x); y += 0.01) {
++T2; s2 += x * x + y * y;
}
cout << s1 / T1 << " " << s2 / T2 << endl;
}
I2RlZmluZSBfQ1JUX1NFQ1VSRV9OT19ERVBSRUNBVEUKI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CiNpbmNsdWRlIDxjc3RkaW8+CiNpbmNsdWRlIDx2ZWN0b3I+CiNpbmNsdWRlIDxhbGdvcml0aG0+CiNpbmNsdWRlIDxtYXA+CiNpbmNsdWRlIDxzZXQ+CiNpbmNsdWRlIDxjc3RyaW5nPgojaW5jbHVkZSA8Y3RpbWU+CiNpbmNsdWRlIDxzdHJpbmc+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgaW5mIDEwMDAwMDAwMDAKI2RlZmluZSBsbCBsb25nIGxvbmcKI2RlZmluZSBlcHMgMWUtOQojZGVmaW5lIFZJIHZlY3RvcjxpbnQ+CiNkZWZpbmUgcGIgcHVzaF9iYWNrCiNkZWZpbmUgTChzKSAoaW50KSgocykuc2l6ZSgpKQojZGVmaW5lIGFsbChzKSAocykuYmVnaW4oKSwgKHMpLmVuZCgpCiNkZWZpbmUgcGlpIHBhaXI8aW50LCB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