import sequtils,strutils,algorithm,math,sugar,macros,strformat template get*():string = stdin.readLine().strip() macro unpack*(arr: auto,cnt: static[int]): auto = let t = genSym(); result = quote do:(let `t` = `arr`;()) for i in 0.. pb.len : quit sa, 0 if pa.len < pb.len : quit sb, 0 for i in 1..pa.len: if pa[^i].ord() > pb[^1].ord(): quit sa,0 if pa[^i].ord() < pb[^1].ord(): quit sb,0