a person spends 1 / 3 rd of the money with him on clothes , 1 / 5 th of the remaining on food and 1 / 4 th of the remaining on travel . now , he is left with rs 200 . how much did he have with him in the beginning ?
n0 = 1.0
n1 = 3.0
n2 = 1.0
n3 = 5.0
n4 = 1.0
n5 = 4.0
n6 = 200.0
t0 = n0 / n1
t1 = n0 - t0
t2 = t1 / n3
t3 = t1 - t2
t4 = t3 / n5
t5 = t3 - t4
answer = n6 / t5
print(answer)