The number A2...2B has 2009 digits (all digits standing between A and B are twos). This number is divisible by 36. Find the digits A and B if we know that B is greater than 5.