You are given a string of length 'n' and you have to return a string with length 'n' where ith character should be the first non repeating character in string upto ith character. In case of "no" non repeating character add '#'.
Input Format
"aaabhfbrrddabb"
Output Format
"a##bbbhhhhhhhh"
Constraints
str.length<10^7
Notice
NA
Example
Input
abcabcab
Output
aaabc###