import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.Scanner;
class Ideone{
int n,P,S;
Scanner myObj
= new Scanner
(System.
in); while(myObj.hasNext()){
n = myObj.nextInt();
P = 4*n;
S = n*n;
System.
out.
println(P
+ " "+ S
); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKCmNsYXNzIElkZW9uZXsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbnsKCQlpbnQgbixQLFM7CgkJU2Nhbm5lciBteU9iaiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJd2hpbGUobXlPYmouaGFzTmV4dCgpKXsKCQkJbiA9IG15T2JqLm5leHRJbnQoKTsKCQkJUCA9IDQqbjsKCQkJUyA9IG4qbjsKCQkJU3lzdGVtLm91dC5wcmludGxuKFAgKyAiICIrIFMpOwoJCX0KCQkKCX0KfQ==