"use strict"
function main(arg) {
    //とりあえず行を分割
    var input = arg;

    var result1 = input * input;
    var result2 = result1 *3

    console.log(result2);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));