add COCI 2013 Contest #6 solutions