Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Better Passwords

Limits 1s, 512 MB

Byang is creating an account on Toph. He needs your help to create a strong password.

Byang will give you a word, and you will need to make the following changes to the word to make it a stronger password:

  • Make the first character an uppercase
  • Replace all s with $
  • Replace all i with !
  • Replace all o with ()
  • Append a . (period) at the end of the password


The input will contain a string AA (0<Length of A<160 < \texttt{Length of A} < 16). AA will contain lowercase alphabets only.


Print the better password after applying all the necessary changes to the original word AA.




Toph uses cookies. By continuing you agree to our Cookie Policy.