3197 from zoj solved