For a positive integer and nonzero digits and let be the -digit integer each of whose digits is equal to ; let be the -digit integer each of whose digits is equal to , and let be the -digit integer each of whose digits is equal to . What is the greatest possible value of for which there are at least two values of such that ?
14
18
22
27
30