import strutils,sequtils proc input():string=stdin.readLine let n=input().parseInt var A= @[2,8] B= @[3,9] C= @[7,9] for i in 0..