def main(): import sys input=sys.stdin.readline n=int(input()) a=list(map(int,input().split())) add_dp=[[False]*256 for _ in range(1<