"""天天向上的能量"""
N = eval(input())energy_1 = pow(1+N/1000,365)energy_2 = pow(1-N/1000,365)p = int(energy_1/energy_2)print("{:.2f},{:.2f},{:}".format(energy_1,energy_2,p))
学号:2020310143012
昵称:苒若