#include <bits/stdc++.h>

using namespace std;

int main() {
        double a, x, y,r;
    cin >> a >> x >> y >> r;
 
    cout << 4 * a << " " << a * a << endl;
    cout << 2 * (x + y) << " " << x * y  << endl;
 
    double pi = acos(-1);

    cout << fixed << setprecision(2)
         << 2 * pi * r << " "
         << pi * r * r;
    
    return 0;
}