# 包除原理の典型問題 # 解説を見てしまったが、これを解けないのはダメ。 mod=10**9+7 def main(): N=int(input()) A=[int(input()) for i in range(N)] C=[0]*N for a in A: if a