from re import match
s = input()
p = match("a=(-?\d+),b=(-?\d+)", s)
print(f"a={p.group(2)},b={p.group(1)}")