set1=list(map(str,input().split(','))) set2=list(map(str,input().split(','))) print('choice one option 1)add 2)remove 3)difference 4)intersection ') n=int(input()) print('choice one 1)set1 2)set2') p=int(input()) if(n==1): st=str(input()) if(p==1): a=set(set1) a.add(st) print("set("+str(list(sorted(a)))+")") elif(p==2): a=set(set2) a.add(st) print("set("+str(list(sorted(a)))+")") else: print('invalid choice') elif(n==2): st=str(input()) if(p==1): a=set(set1) a.remove(st) print("set("+str(list(sorted(a)))+")") elif(p==2): a=set(set2) a.remove(st) print("set("+str(list(sorted(a)))+")") else: print('invalid choice') elif(n==3): if(p==1): a=set(set1) b=set(set2) c=list(sorted(a.difference(b))) print("set("+str(c)+")") elif(p==2): a=set(set1) b=set(set2) c=list(sorted(b.difference(a))) print("set("+str(c)+")") else: print('invalid choice') elif(n==4): if(p==1): a=set(set1) b=set(set2) c=list(sorted(a.intersection(b))) print("set("+str(c)+")") elif(p==2): a=set(set1) b=set(set2) c=list(sorted(b.intersection(a))) print("set("+str(c)+")") else: print('invalid choice')