data1 = [
(1, 2, 3),
(4, 2, 1)
]
data2 = [
(2, 4),
(8, 9),
(1, 3)
]
union_data = data1 + data2
print("Union Data:")
for row in union_data:
print(row)
ZGF0YTEgPSBbCiAgICAoMSwgMiwgMyksCiAgICAoNCwgMiwgMSkKXQoKZGF0YTIgPSBbCiAgICAoMiwgNCksCiAgICAoOCwgOSksCiAgICAoMSwgMykKXQoKdW5pb25fZGF0YSA9IGRhdGExICsgZGF0YTIKCnByaW50KCJVbmlvbiBEYXRhOiIpCmZvciByb3cgaW4gdW5pb25fZGF0YToKICAgIHByaW50KHJvdykK