import math

def cylinder_properties(r, h):
    # Check for invalid input
    if r < 0 or h < 0:
        print("Invalid input")
        return
    
    # Surface area formula: A = 2 * pi * r * (r + h)
    surface_area = 2 * math.pi * r * (r + h)
    
    # Volume formula: V = pi * r^2 * h
    volume = math.pi * r**2 * h
    
    # Print rounded to 2 decimal places
    print(f"Surface Area: {surface_area:.2f}")
    print(f"Volume: {volume:.2f}")

# Example usage with sample input
r = int(input())
h = int(input())
cylinder_properties(r, h)