N = eval(input(""))x = pow((1+N/1000),364)y = pow((1-N/1000),364)z = int(x/y)print("{:.2f}, {:.2f}, {}".format(x,y,z))