''' 先进行数学推导计算, 5次总共的路程distance=h*23/8 第5次回弹的高度h5=h/32 ''' h = float(input()) print(str(23*h/8)+'\n'+str(h/32))