[SUBS]RANK

Problem 239 - conservation of energy