x, y = map(str, input().split(',')) xkey, xvalue = map(str, x.split('=')) ykey, yvalue = map(str, y.split('=')) print('{}={},{}={}'.format(xkey, yvalue, ykey, xvalue))
x, y = map(str, input().split(',')) xkey, xvalue = map(str, x.split('=')) ykey, yvalue = map(str, y.split('=')) print('{}={},{}={}'.format(xkey, yvalue, ykey, xvalue))