[SUBS]RANK

Solution of problem 254