# match a string with an 'a' followed by two or three 'b's'

import re
string = input('Please enter a number: ')
pattern = r"^a(b){2,3}$"

match = re.match(pattern, string)
if match:
   print ("Match")
else:
    print ("No match")