while True: try: num = int(input()) s = num for i in range(4): s+=num num/=2 print(s) print(num/2) except: break