code for random try set.
ready to 2014 offline competition.