class Circle:
    __pi = 3.14

    def __init__(self, diameter):
        self.diameter = diameter
        self.radius = diameter / 2

    def calculate_circumference(self):
        return Circle.__pi * self.diameter

    def calculate_area(self):
        return Circle.__pi * self.radius * self.radius

    def calculate_area_of_sector(self, angle):
        return (angle/360) * Circle.__pi * self.radius * self.radius


circle = Circle(int(input()))
angle = int(input())

print(f"{Circle.calculate_circumference(circle):.2f}")
print(f"{Circle.calculate_area(circle):.2f}")
print(f"{Circle.calculate_area_of_sector(circle, angle):.2f}")
