#include <bits/stdc++.h>

using namespace std;

int main() {
    int a, x, y,r;
    cin >> a >> x >> y >> r;
 
    cout << 4 * a << " " << a * a << endl;
    cout << 2 * (x + y) << " " << x * y  << endl;
 
    cout << fixed << setprecision(2)
         << 2 * 3.14 * r << " "
         << 3.14 * r * r;

    
    return 0;
}