A sample of an ideal gas is taken through a cycle as shown in the figure. It absorbs 50J of energy during the process AB, no heat during BC, rejects 70J during CA. 40J of work is done on the gas during BC. the internal energy of a gas at A is 1500J, the internal energy at C would be