from math import pi as p R = int(input()) print('\n'.join(map(str,[round(p*R**2,6) if i == 0 else 2*R**2 for i in range(2)])))