h = int(input()) print(format(2.875*h,'.6f').rstrip('0')) print(format(1/(2**5)*h,'.6f').rstrip('0'))