import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main
{
{
String[] params1
= bufferedReader.
readLine().
split(" "); char a;
a = params1[0].charAt(0);
float b;
s += a;
System.
out.
println((int)(((2+3*(b
-1))*b
)/2)); for(int i = 0;i < b;i++){
for(int j=1;j<b-i;j++){
}
s=a+s+a;
}
}
}
aW1wb3J0IGphdmEuaW8uQnVmZmVyZWRSZWFkZXI7CmltcG9ydCBqYXZhLmlvLklucHV0U3RyZWFtUmVhZGVyOwogCmNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJQnVmZmVyZWRSZWFkZXIgYnVmZmVyZWRSZWFkZXIgPSBuZXcgQnVmZmVyZWRSZWFkZXIobmV3IElucHV0U3RyZWFtUmVhZGVyKFN5c3RlbS5pbikpOwoJCVN0cmluZ1tdIHBhcmFtczEgPSBidWZmZXJlZFJlYWRlci5yZWFkTGluZSgpLnNwbGl0KCIgIik7CgkJU3RyaW5nIHMgPSAiIjsKCQljaGFyIGE7CgkJYSA9IHBhcmFtczFbMF0uY2hhckF0KDApOwoJCWZsb2F0IGI7CgkJcyArPSBhOwogICAgICAgIGIgPSBJbnRlZ2VyLnBhcnNlSW50KHBhcmFtczFbMV0pOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigoaW50KSgoKDIrMyooYi0xKSkqYikvMikpOwoJCWZvcihpbnQgaSA9IDA7aSA8IGI7aSsrKXsKCQkJZm9yKGludCBqPTE7ajxiLWk7aisrKXsKICAgICAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnQoIiAiKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50KHMpOwoJCQlzPWErcythOwoJCQlTeXN0ZW0ub3V0LnByaW50KCJcbiIpOwoJCX0KCX0KfQ==