a = list(map(int, input().split())) b = 0 if a[0] <= a[2]: b -= 1 if a[1] <= a[2]: b -= 1 print(b)