Codeforces Beta Round #84 Problem D Lucky Sorting