Test passes if the rightmost character of the line that starts with “a” is under the number 3.

12345
aaב
ב