The counting number ABAB is a multiple of 36. If different letters represent different digits, what is the greatest value ABAB can have?