bsflll's submissions for COCI '16 Contest 6 #5 Sirni