class Main
  def self.run
    r = read_input
    circle = Circle.new(r)
    puts "#{circle.area} #{circle.perimeter}"
  end

  private

  def self.read_input
    gets.to_f
  end

end

class Circle
  def initialize(radius)
    @radius = radius
  end

  def area
    (@radius ** 2 * Math::PI).round(6)
  end

  def perimeter
    (@radius * 2 * Math::PI).round(6)
  end
end

Main.run