N = float(input("")) n = N/1000 s = ((1 + n)**365) x = ((1 - n)**365) B = int(s/x) print("{:.2f}, {:.2f}, {:}".format(s,x,B))