ioi 2014 - contest 1