MODE = "stdio"

line = Array.new

if(defined? MODE)
  line = STDIN.read.split("\n")
else
  tmp = "\
  2
  ".split("\n")
  tmp.each{|s|
    line << s.strip
  }
end



r = line[0].split(" ").map(&:to_i)

printf("%.10f %.10f",(-1.arg)*r[0]**2,2*(-1.arg)*r[0])