func main() var a: int :: cui@inputInt() var b: int :: cui@inputInt() var c: int :: cui@inputInt() if(a = b | b = c | c = a) do cui@print("0\n") ret end if if([a, b, c].max() = b | [a, b, c].min() = b) do cui@print("INF\n") ret end if var ans: int :: 0 for p(1, [a, b, c].max()) var aa: int :: a % p var bb: int :: b % p var cc: int :: c % p if(aa = bb | bb = cc | cc = aa) skip p end if if([aa, bb, cc].max() = bb | [aa, bb, cc].min() = bb) do ans :+ 1 end if end for do cui@print("\{ans}\n") end func