import sequtils,strutils,math let V = stdin.readline.split.map(parseInt) var ans = int.high for a in 1..30: for b in 1..