my solution code for sgu(http://acm.sgu.ru)