Query regarding input


#1

Can A and B both contain the ‘.’ and ‘*’ characters ??
Or only one of them can contain these special characters?