nsu online 2014 task 9 SOLVED! CR271 A,B,C,D tasks.