if 4 ( p ' s capital ) = 6 ( q ' s capital ) = 10 ( r ' s capital ) , then out of the total profit of rs 4650 , r will receive
n0 = 4.0
n1 = 6.0
n2 = 10.0
n3 = 4650.0
t0 = n0 + 1.0
t1 = n2 + t0
t2 = n2 + t1
t3 = n1 + t2
t4 = n1 / t3
answer = n3 * t4
print(answer)