Two carnot engines are connected in series with a common intermediate reservoir and output work of both engines is same. If temperature of source of 1st engine is at 600 K and temperature of sink of 2nd engine is at 400 K. The temperature of intermediate reservoir will be