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.. c or a > b and b < c : quit("INF",0) var res = 0 for i in 1..max([a,b,c]): let (d,e,f) = (a mod i,b mod i,c mod i) if (d < e and e > f or d > e and e < f) and (d != e and e != f and d != f): res += 1 echo res