https://www.acmicpc.net/problem/16486
d1=int(input()) d2=int(input()) pi=3.141592 print(2*d1+2*pi*d2)