Solution for Iota 2011 task