#Input string where all occurrences of first character replaced with '$'
str=input("Enter the string : ")
def rep_ch(str1):
  char=str1[0]
  str1=str1.replace(char, '$')
  str1=char+str1[1:]
  return str1
print(rep_ch(str))
