Solution for Theta 2011 task