while~0:x=raw_input().split();print(-1)**sum(sum(map(x.pop(0).__gt__,x))for _ in x*1)