print"@{[sort<>*0,glob<>]}"=~/0 1( 1 1)*( 2)?$/?A:B