Added SPOJ's ADDREV.