# set the elements in fcc, bcc, and hcp by lattice type
fcc = set(['Cu', 'Co', 'Fe', 'Mn', 'Ni', 'Sc'])
bcc = set(['Cr', 'Fe', 'Mn', 'Ti', 'V'])
hcp = set(['Co', 'Ni', 'Sc', 'Ti', 'Zn'])
# (a) print only exist fcc, bcc, and hcp
print('(a) only_fcc:', fcc - bcc - hcp)
print('(a) only_bcc:', bcc - fcc - hcp)
print('(a) only_hcp:', hcp - fcc - bcc)
# (b) exist in two structures
print('(b) fcc and bcc:', fcc & bcc - hcp)
print('(b) fcc and hcp:', fcc & hcp - bcc)
print('(b) bcc and hcp:', bcc & hcp - fcc)
# (c) print do not form hcp
all_metals = fcc | bcc | hcp
print('(c) no_hcp:', all_metals - hcp)
# (d) print the metals exist in fcc, bcc, and hcp
print('(d) fcc and bcc and hcp:', fcc & bcc & hcp)