import sys readline=sys.stdin.readline write=sys.stdout.write A,B=readline().rstrip().split("&") print(A,B)