using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp130 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int x = n * n * 3; Console.WriteLine(x); } } }