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

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

-print((3 * (int(eval(input())) ** 2))) +print((3 * int(eval(input())) ** 2))