#include <iostream>
using namespace std;

int main() {
	int n,P,S;
	while(cin >> n){
		P = 4*n;
		S = n*n;
		cout << P << " " << S <<"\n";
	}
	return 0;
}