hh = int(input()) def heigth(h): sum = h + (h / 2 + h / 4 + h / 8 + h / 16) * 2 H = h / 32 return sum, H num = heigth(hh) print(num[0]) print(num[1])