solved prob336 :)