# Write a program which accepts a sequence of comma-separated numbers from console
# and generate a list and a tuple which contains every number.

values = input()

l = values.split(",")

t = tuple(l)

print("List = ", l)
print("Tuple = ", t)