z=input() a=z[0] z=z[1:] print(a,end='') for item in z: if item==a: print("$ ",end='') else: print(item,end='') print()