Problem:
 Score : 100 points    Problem Statement It is known that the area of a regular dodecagon inscribed in a circle of radius a is 3a^2 .  Given an integer r , find the area of a regular dodecagon inscribed in a circle of radius r .      Constraints  1 \leq r \leq 100  r is an integer.         Input Input is given from Standard Input in the following format:  r       Output Print an integer representing the area of the regular dodecagon.        Sample Input 1 4      Sample Output 1 48  The area of the regular dodecagon is 3 \times 4^2 = 48 .       Sample Input 2 15      Sample Output 2 675       Sample Input 3 80      Sample Output 3 19200

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
print (int(input()) ** 2 * 3)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
a = int(input())
print(3*a**2)

Solution (Python):
r = int(input())
print(3 * r**2)

Solution (Python):
r = int(input())
ans = 3 * r * r
print(ans)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())

print(3*r**2)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
n = int(input())
print(3*n**2)

Solution (Python):
r=int(input())
m=3*r*r
print(m)

Solution (Python):

x = int(input())
y  = 3*x*x
print (y)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
import sys
import numpy as np

def input():
	return sys.stdin.readline().rstrip()
def main():
	r = int(input())
	print(3 * r * r)
if __name__ == '__main__':
	main()

Solution (Python):
def area(x):
    answer=3*(x**2)
    return answer
a=int(input())
print(area(a))

Solution (Python):
r = int(input())

print(3*r**2)

Solution (Python):
r = int(input())
print(int(3*r**2))

Solution (Python):
a = int(input())
print(3*a*a)

Solution (Python):
r=int(input())
print(int(3*r**2))

Solution (Python):
print(3*int(input())**2)

Solution (Python):
a=int(input())
print(3*a**2)

Solution (Python):
a=int(input())
k=3 * a ** 2
print(k)

Solution (Python):
n = int(input())
print(3*n**2)

Solution (Python):
print(3 * int(input()) ** 2)

Solution (Python):
print(int(input())**2*3)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
import glob



REL_PATH = 'ABC\\134\\A'


TOP_PATH = 'C:\\AtCoder'


class Common:
    problem = []
    index = 0

    def __init__(self, rel_path):
        self.rel_path = rel_path

    def initialize(self, path):
        file = open(path)
        self.problem = file.readlines()
        self.index = 0
        return

    def input_data(self):
        try:
            IS_TEST
            self.index += 1
            return self.problem[self.index - 1]

        except NameError:
            return input()

    def resolve(self):
        pass

    def exec_resolve(self):
        try:
            IS_TEST
            for path in glob.glob(TOP_PATH + '\\' + self.rel_path + '/*.txt'):
                print("Test: " + path)
                self.initialize(path)
                self.resolve()
                print("\n\n")
        except NameError:
            self.resolve()


class A(Common):

    def resolve(self):

        r = int(self.input_data())
        print(str(3*r*r))


solver = A(REL_PATH)
solver.exec_resolve()

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
r = int(input())
print(int(3*r*r))

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
a = int(input())

print(3*a*a)

Solution (Python):
r = int(input())
print(3 * r**2)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
n = int(input())
print(3 * n * n)

Solution (Python):



r = int(input())



print(3 * (r ** 2))

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
print(3* int(input())**2)

Solution (Python):

import numpy as np
import math
import copy
import re
import sys


inf = float("inf")
prime = 1

def check_print(check_flag, text, end="\n"):
  if check_flag:
    print(text, end=end)

def c2i(x):
    if str.isdecimal(x):
        return int(x)
    else:
        return x

def cout(*args):
  arglist = []
  for arg in args:
    if hasattr(arg, "__iter__"):
      arglist.extend(arg)
    else:
      arglist.append(arg)
      
  arglist = list(map(str, arglist))
  print(" ".join(arglist))
  
def count2(num):
  count=0
  while num%2==0:
    num/=2
    count+=1
  return count

def ketasum(num):
  nums = [int(s) for s in str(num)]
  return sum(nums)


def gcd(a, b): 
  while b:
    a, b = b, a % b
  return a

def lcm(a, b): 
  return a * b // gcd (a, b)

def gcd3(lis): 
  ans = lis[0]
  for li in lis:
    ans = gcd(ans,li)

def lcm3(lis): 
  ans = lis[0]
  for li in lis:
    ans = lcm(ans,li)

def divisor(n): 
  i = 1
  table = []
  while i * i <= n:
    if n%i == 0:
      table.append(i)
      table.append(n//i)
    i += 1
  table = list(set(table))
  return table

def prime_decomposition(n):
  i = 2
  table = []
  while i * i <= n:
    while n % i == 0:
      n /= i
      table.append(i)
    i += 1
  if n > 1:
    table.append(n)
  return table

def is_prime(n):
  for i in range(2, n + 1):
    if i * i > n:
      break
    if n % i == 0:
      return False
  return n != 1


"""
n = int(input())


a = map(int, input().split())
a,b = map(int, input().split())

d=[]
for i in range(n):
  d[i]=int(input())


a = [list(map(int, input().split())) for i in range(n)]

s = input()
ss =  [int(si) for si in s]
"""


"""
a = sorted(a)
a = sorted(a, reverse=True)

"""


"""
pattern = ""
result = re.search(pattern, s)

result = re.fullmatch(pattern, s)

result = re.finditer(pattern, s)
for res in result:
    print res.group()   
    print res.start()   
    print res.end()     
    print res.span()    
"""


r = int(input())

print(3*r**2)

Solution (Python):
r = int(input())
print(r*r*3)

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
n=int(input())
print(3*(n**2))

Solution (Python):
r = int( input() )
print( 3 * r**2 )

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print (3 * r *r)

Solution (Python):
r=int(input())
print(3*r**2)

Solution (Python):
r = int(input())


print(3*r*r)

Solution (Python):

import sys


def solve(r: int):
    print(3 * r ** 2)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  
    solve(r)

if __name__ == '__main__':
    main()

Solution (Python):
a = int(input())

print(3*a*a)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())

print(3*r*r)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
r=int(input())
print(3*(r**2))

Solution (Python):
import sys
a = int(input())
print(3*a**2)

Solution (Python):

n=int(input())

print(3*n*n)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):

r = int(input())

S = 3 * r **2
print(S)

Solution (Python):
a = int(input())
print(3 * a**2)

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
r = int(input())
S = 3 * r * r
print(S)

Solution (Python):
A  = int(input())
print(3*A*A)

Solution (Python):
a = int(input())

print(3 * a * a)

Solution (Python):
def main():
	r = int(input())
	print(3*r*r)


if __name__ == '__main__':
	main()

Solution (Python):
a = int(input())

print(3*a**2)

Solution (Python):
def A_Dodecagon():
    r = int(input())
    print(3*r*r)
if __name__ == "__main__":
    A_Dodecagon()

Solution (Python):
print(3 * int(input()) ** 2)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
r=int(input())
print(3*(r**2))

Solution (Python):
a=int(input())
print(3*a**2)

Solution (Python):
r = int(input())
print(3 * (r**2))

Solution (Python):
r = int(input())

print(r*r*3)

Solution (Python):
r = int(input())
menseki = 3 * r ** 2
print(menseki)

Solution (Python):
print(3 * (int(input()) ** 2))

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())

print(3*(r*r))

Solution (Python):

r = int(input())
print(3*r*r)

Solution (Python):
r = int(input().split()[0])

ans = 3 * (r ** 2)
print(ans)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r=int(input())
S=3*r*r
print(S)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
print(3 * int(input()) ** 2)

Solution (Python):
r = int(input())

print(3*r**2)

Solution (Python):
r  = int(input())

print( 3 * r * r )

Solution (Python):
def p_a():
    print(int(input()) ** 2 * 3)

if __name__ == '__main__':
    p_a()

Solution (Python):

import decimal
a = decimal.Decimal(int(input()))
print(3 * a * a)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
print(3*(int(input())**2))

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r=input()

print(3*int(r)*int(r))

Solution (Python):
r = int(input())
print( 3 * r * r )

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):

input = input().split()
a = int(input[0])

ans = 3 * a * a

print(ans)

Solution (Python):
r = input()
r = int(r)
print(3 * r * r)

Solution (Python):

r = int(input())

print(3*r*r)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(raw_input())
print(3*r*r)

Solution (Python):
def test():
    r = int(input())
    print(3*r**2)


if __name__ == "__main__":
    test()

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
R = int(input())
print(3*R*R)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
s = 3*r**2
print(s)

Solution (Python):
print(3*pow(int(input()),2))

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
print(3*int(input())**2)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
def main():
    
    
    r = int(input())
    
    return(3*r*r)


if __name__ == '__main__':
    print(main())

Solution (Python):
print(3*(int(input()))**2)

Solution (Python):
r = int(input())

def cal_S(r):
    return 3*r**2

print(cal_S(r))

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())

result = 3 * r **2

print(result)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
inp = int(input())
s = 3 * inp ** 2
print(s)

Solution (Python):



def main():
  r = int(input())
  print(3*(r**2))
  pass

if __name__=='__main__':
  main()

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())
S = 3 * (r**2)

print(S)

Solution (Python):
print(3 * int(input()) ** 2)

Solution (Python):
a = int(input())
print(a*a*3)

Solution (Python):
r = int(input())

ans = 3*r**2
print(ans)

Solution (Python):
r = int(input())
print(3 * (r**2) )

Solution (Python):
r=int(input())
s=3*r**2
print(s)

Solution (Python):
r = int(input())
print(int(3*r*r))

Solution (Python):
print(3*int(input())**2)

Solution (Python):
i = int(input())

a = 3 * i * i

print(a)

Solution (Python):


r = int(input())

print(3*r**2)

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
def solve(string):
    return str(3 * int(string)**2)


if __name__ == '__main__':
    print(solve(input()))

Solution (Python):
print(3 * (int(input())**2))

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
result = 3*r*r

print(result)

Solution (Python):

r=int(input())  

print(3*r*r)

Solution (Python):
r = int(input())
b = 3*r**2
print(b)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
N = int(input())
print(3 * N**2)

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
r=int(input())
print(3*r**2)

Solution (Python):

r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
N = int(input())
print(3*N*N)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r=int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())

print((3*(r**2)))

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
print(int(input())**2*3)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3 * (r ** 2))

Solution (Python):
r= int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
radius = int(input().strip())
print(3 * (radius ** 2))

Solution (Python):
a = int(input())
print(3 * a * a)

Solution (Python):
r= int(input())
ans = 3*(r**2)
print(ans)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
a=int(input())
print(3*(a**2))

Solution (Python):

r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())

print(3 * r * r)

Solution (Python):
print(int(input())**2*3)

Solution (Python):
def main():
  print(int(input()) ** 2 * 3)


if __name__ == '__main__':
  main()

Solution (Python):
print(int(input())**2*3)

Solution (Python):
print(3*(int(input())**2))

Solution (Python):
def solve():
    r = int(input())
    return 3 * r ** 2


if __name__ == "__main__":
    print(solve())

Solution (Python):
print(3*(int(input())**2))

Solution (Python):
N = int(input())

print(3 * (N ** 2))

Solution (Python):
r = int(input())
print(3 * (r ** 2))

Solution (Python):
r = int(input())
ans = 3 * r**2
print(ans)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):

r = int(input())


print(3*r*r)

Solution (Python):
r = int(input())

print( 3 * (r * r))

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):


r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
s = 3*r*r
print(s)

Solution (Python):
"""
- https://atcoder.jp/contests/abc134/tasks/abc134_a
- 3*a^2
"""

r = int(input())
ans = 3 * pow(r, 2)
print(ans)

Solution (Python):
r = int(input())

print(3*r**2)

Solution (Python):
def resolve():
    s = int(input())
    print(s * s * 3)
resolve()

Solution (Python):
r = int(input())
print(r**2*3)

Solution (Python):
r = int(input())

print(r**2*3)

Solution (Python):
r = input()
area = 3 * int(r) **2
print(area)

Solution (Python):
r = int(input())

print(3 * r ** 2)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
print(3 * (int(input()) ** 2))

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())

print(3*r*r)

Solution (Python):
r = int(input())
print(r**2*3)

Solution (Python):
r=int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
r=int(input())
print(3*r**2)

Solution (Python):
a=int(raw_input())
print(3*(a**2))

Solution (Python):
r = int(input())
print (3 * r * r)

Solution (Python):
a = int(input())

print(3*a**2)

Solution (Python):
a = int(input())
b=3*a*a
print (b)

Solution (Python):
r = int(input())
b=r*r
c=b*3
print(c)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r=int(input())
print(3*(r**2))

Solution (Python):
r = int(input())

print(r**2*3)

Solution (Python):

r=int(input())
print(3*(r**2))

Solution (Python):
s = int(input())
print(s*s*3)

Solution (Python):
if __name__ == '__main__':
    
    r = int(input())
    print(3*(r**2))

Solution (Python):
r = int(input())
print(3 * r * r, end=" ")

Solution (Python):
n = int(input())
print(3*n*n)

Solution (Python):
r = int(input())
print(r ** 2 * 3)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
r=int(input())
S = 3*r**2
print(S)

Solution (Python):
s = input()

print(int(s) **2 * 3)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
def iread():
    return int(input())


def sread():
    return input()


def aread_int():
    tmp = input().split()
    ret = [int(i) for i in tmp]
    return ret


def aread_str():
    return input().split()


if __name__ == '__main__':
    a = iread()
    print(3 * a * a)

Solution (Python):
a = int(input())
print(3*a**2)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
print(str(3 * int(input())**2))

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())

print(3*r**2)

Solution (Python):
r=int(input())
print(3*r**2)

Solution (Python):
r = int(input())
V = 3*r**2
print(V)

Solution (Python):
"""


 = sys.stdin.readline().rstrip()
 = list(sys.stdin.readline().rstrip())


 = int(sys.stdin.readline())
 = map(int, sys.stdin.readline().split())
 = list(map(int, sys.stdin.readline().split()))
 = [list(map(int,list(sys.stdin.readline().split()))) for i in range(h)]  


a = 100
b = 0.987654321
print("{0:06d}-{1:6f}".format(a,b))
000100-0.987654


char_list = list("abcd") 
"""

import math
import sys
import itertools
import queue
from fractions import gcd

def lcm(a, b):
    return a * b // gcd(a, b)

mod = 1000000007

if __name__ == "__main__":
    r = int(sys.stdin.readline())
    print(3 * (r ** 2))

Solution (Python):
r = int(input())

s = 3 * r ** 2

print(s)

Solution (Python):
r = int(input())

print(3*r*r)

Solution (Python):
a = int(input())
print(3*a*a)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
r=int(input())
print(3*(r**2))

Solution (Python):


r = int(input())
A = 3 * r**2

print(int(A))

Solution (Python):

print(3*int(input())**2)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r=int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
r = input()
r = int(r)
print(3*r**2)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
a=input()
b=int(a)

if b >= 0 and b <= 100:
  print(3*pow(b,2))

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
r = int(input(''))
print(3 * r * r)

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
r = input()

r = int(r)

ans = 3 * (r ** 2)

print(ans)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3 * r **2)

Solution (Python):
n1 = int(input())

print(3 * n1 * n1)

Solution (Python):
a = int(input())
print(3*a**2)

Solution (Python):
r = int(input())

S = 3 * r * r

print(S)

Solution (Python):
r = int(input())
m = 3*r*r
print(m)

Solution (Python):
s=list(map(int,input().split()))
a=0
b=s[0]**2*3
print(b)

Solution (Python):
r=int(input())

print(3 * r * r)

Solution (Python):
i = input()
r = int(i)

s = 3 * r * r 

print(  "%d" % s )

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
a = int(input())
print(3*a**2)

Solution (Python):
hankei = int(input())
ans = 3*(hankei*hankei)
print(ans)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
n=int(input())
print(3*n*n)

Solution (Python):
a = int(input())
print(3*a**2)

Solution (Python):
i=int(input())
print(i*i*3)

Solution (Python):
r=int(input())
area= r*r*3
print(area)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())
ans = 3*r**2
print(ans)

Solution (Python):
r = int(input())
area = 3 * (r * r)
print(area)

Solution (Python):
a = int(input())

print( 3 * a * a)

Solution (Python):
N = int(input())
print(3*N**2)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
print((int(input()) ** 2)*3)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
a = int(input())

area = 3*a**2
print(area)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
r=int(input())
s=3*r*r
print(s)

Solution (Python):
r = int(input())
print(3 * r **2)

Solution (Python):


r = int(input())
print(3*r**2)

Solution (Python):
import math

n = int(input())









print(3*n*n)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
i = int(input())
print(3 * i * i)

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
a = int(input())
print(3*a**2)

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
a = int(input())
print(int(3 * a**2))

Solution (Python):
r = int(input())
print("{}".format(3*(r**2)))

Solution (Python):
r=int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
if __name__ == '__main__':
    r = int(raw_input())
    print 3*r*r

Solution (Python):
import sys
input = sys.stdin.readline

def main():
	n = int(input().strip())
	print(3 * n **2)

if __name__ == '__main__':
	main()

Solution (Python):
r = int(input())
S = 3*r*r
print(S)

Solution (Python):
r = int(input())

menseki = 3 * r * r
print(menseki)

Solution (Python):
r = int(input())
print(r * r * 3)

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):

import sys


def solve(r: int):
    print(3*r*r)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  
    solve(r)

if __name__ == '__main__':
    main()

Solution (Python):
r = int(input())
x = 3*(r**2)
print(x)

Solution (Python):
r = int(input())
x = 3*(r**2)
print(x)

Solution (Python):
a = int(input())
print("{}".format(3*a*a))

Solution (Python):
a = int(input())
print("{}".format(3*a*a))

Solution (Python):
x = int(input())
print(3*x**2)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r=int(input())

S=3*r*r

print(S)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):

def main():
    r = int(input())
    print(3 * r ** 2)


if __name__ == '__main__':
    main()

Solution (Python):
print(3*(int(input()))**2)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
a = int(input())
print(3*a*a)

Solution (Python):
r = int(input())
ans = 3 * (r * r)
print(ans)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
n = int(input())
print(3*n**2)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())

print(3*r*r)

Solution (Python):
from sys import stdin

def main():
    r = int(stdin.readline().rstrip())
    print(3*r**2)

if __name__ == '__main__':
    main()

Solution (Python):
from sys import stdin

def main():
    r = int(stdin.readline().rstrip())
    print(3*r**2)

if __name__ == '__main__':
    main()

Solution (Python):
r = int(input())
s = 3*(r**2)
print(s)

Solution (Python):
a=int(input())
print(3 * a * a)

Solution (Python):
N = int(input())

print(3*N**2)

Solution (Python):
r = int(input())
print(r ** 2 * 3)

Solution (Python):
r = int(input())
S = 3* r * r
print(S)

Solution (Python):
r = int(input())
s = 3*r*r
print(s)

Solution (Python):
a =int(input())
print(3*a**2)

Solution (Python):
a =int(input())
print(3*a**2)

Solution (Python):
r=int(input())
print ( 3*r*r )

Solution (Python):
r=int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3 * (r ** 2))

Solution (Python):
r = int(input())

print(3 * r ** 2)

Solution (Python):
n=int(input())
print(3*(n**2))

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
print(3 * int(input()) ** 2)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
r = int(input())

print(3 * r * r)

Solution (Python):
r = int(input())

print(3 * r * r)

Solution (Python):
r=int(input())
print(3*r**2)

Solution (Python):
r = int(input())

print(3*r*r)

Solution (Python):
r = int(input())**2*3
print(r)

Solution (Python):
print(int(input()) ** 2 * 3)

Solution (Python):
N = int(input())
print(3*(N**2))

Solution (Python):
r = int(input())
print(3 * r ** 2)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
r = int(input())

print(3*r*r)

Solution (Python):
print((int(input())**2)*3)

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r=input()
S=3*int(r)**2
print(S)

Solution (Python):
r = int(input())
ans = 3 * r **2
print(ans)

Solution (Python):
r = input()

r = int(r)

print(3 * r * r)

Solution (Python):
a = int(input())
print(3*a*a)

Solution (Python):
r = int(input())
print(r*r*3)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
i = int(input())
out = 3*i*i
print(out)

Solution (Python):
x = int(input())
print(3 * x * x)

Solution (Python):
import sys
input = sys.stdin.readline
r = int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(3 * r * r)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())

print(3 * r * r)

Solution (Python):

a=int(input())
print(3*a*a)

Solution (Python):
a=int(input())
d=0
while d<10000000:
  d+=1
print(3*a*a)

Solution (Python):
a=int(input())
print(3*a*a)

Solution (Python):
r = int(input())

print(3*r*r)

Solution (Python):
r = int(input())

print(r**2*3)

Solution (Python):
r = int(input())

print(3*r*r)

Solution (Python):
r = int(input())

print(3*r*r)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r=int(input())

ans=3*r*r
print(ans)

Solution (Python):
print(3*(int(input())**2))

Solution (Python):
r=int(input())
print(3*r**2)

Solution (Python):
a=int(input())
print(3*a*a)

Solution (Python):
import sys

if sys.platform =='ios':
  sys.stdin=open('input134a.txt')



r = int(input())


print(3*r*r)

Solution (Python):

import sys


def solve(r: int):
    print(3 * r * r)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  
    solve(r)

if __name__ == '__main__':
    main()

Solution (Python):


r = int(input())
print(3 * r**2)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
print( int(input())**2 * 3 )

Solution (Python):
r = int(input())
a = 3 * r ** 2
print(a)

Solution (Python):
r = int(input())
s = 3 * (r ** 2)
print(s)

Solution (Python):
r=int(input())
print(3*r*r)

Solution (Python):
r = int(input())
print(r**2*3)

Solution (Python):
n = int(input())
print(3*n*n)

Solution (Python):
r = int(input())
print(3*r*r)

Solution (Python):
print(3*(int(input())**2))

Solution (Python):
r = int(input())

print(3 * r ** 2)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
print(3 * int(input()) ** 2)

Solution (Python):
r = int(input())
ans = 3 * r * r
print(ans)

Solution (Python):
r = int(input())
v = 3 * r ** 2
print(v)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
a = int(input())
print(3*a*a)

Solution (Python):
print(int(input())**2*3)

Solution (Python):
r = int(input())

print(r*r*3)

Solution (Python):
n=int(input())
print(3*n*n)

Solution (Python):

r=input()
r=int(r)

def area_12(x):
    area=3*(r**2)
    return area

area=area_12(r)

print(area)

Solution (Python):
r = int(input())

area = 3*r*r

print(area)

Solution (Python):
print(3*int(input())**2)

Solution (Python):
r= int(input())
print(3*r**2)

Solution (Python):
a = int(input())
print(a*a*3)

Solution (Python):
a = int(input())
ans = 3 * a * a
print(ans)

Solution (Python):
r = int(input())
print(3*r**2)

Solution (Python):
r = int(input())
print(3*(r**2))

Solution (Python):
hankei = int(input())
print(3*(hankei*hankei))

Solution (Python):
r = int(input())
print(3*pow(r, 2))

Solution (Python):
r = int(input())
D = 3 * (r**2)
print(D)

Solution (Python):
a = input()
print 3*pow(a,2)

Solution (Python):
r = int(input())
S = 3 * r ** 2
print(S)

Solution (Python):
print(int(input()) ** 2 * 3)

Solution (Python):
r = int(input())

print(3 * r * r)

Solution (Python):
r = int(input())
s = 3 * r ** 2
print(str(s))

Solution (Python):
from copy import *
from sys import *
import math
import queue
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac

setrecursionlimit(1000000)


def main():
	n  = int(input())
	print(3*n**2)

def zip(a):
	mae = a[0]
	ziparray = [mae]
	for i in range(1,len(a)):
		if(mae != a[i]):
			ziparray.append(a[i])
			mae = a[i]
	return ziparray

def is_prime(n):
	if n < 2: return False

	for k in range(2, int(math.sqrt(n)) + 1):
		if n % k == 0:
			return False

	return True

def list_replace(n,f,t):
	return [t if i==f else i for i in n]

def base_10_to_n(X, n):
	X_dumy = X
	out = ''
	while X_dumy>0:
		out = str(X_dumy%n)+out
		X_dumy = int(X_dumy/n)
	if(out == ''): return '0'
	return out

def gcd(m,n):
	x = max(m,n)
	y = min(m,n)
	while(x%y!=0):
		z = x%y
		x = y
		y = z
	return y

class queue():
	def __init__(self):
		self.q = deque([])
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.popleft()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class stack():
	def __init__(self):
		self.q = []
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.pop()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class graph():
	def __init__(self):
		self.graph = defaultdict(list)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
		self.graph[t].append(f)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
		self.graph[t].remove(f)
	def linked(self,f):
		return self.graph[f]

class dgraph():
	def __init__(self):
		self.graph = defaultdict(set)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
	def linked(self,f):
		return self.graph[f]

main()