Find the type



What is the type of following grammar:
S -> aXY
XY -> a
X -> b
Y -> Xb

.