import strutils,strscans var N = stdin.readline.parseInt a,b,c,d : int r : string scan : bool s = {0..9} A : set[int8] line : string for i in 0..