You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
125 B

print(set(s:=sorted(map(lambda x:int(''.join(map(lambda y:'01'[int(y in'BR')],x)),2)//2,open(0))))^set(range(s[0],s[-1]+1)))