# -*- coding: utf-8 -*-
"""
Created on Thu Jul 26 15:59:29 2018

@author: user
"""

A = {5, 3, 8, 6, 1}
B = {1, 5, 3, 4, 2}

print(A | B)
print(A & B)
print(A-B)
print(B-A)
print(max(A))
print(max(B))