function solution(S) {
var myArray = S.split("");
var ans='';
for(var i=0;i<myArray.length;i++){
if(myArray[i]=='p'||myArray[i]=='m'){
if(myArray[i]=='p'&&i<=myArray.length-4){
if(myArray[i]=='p'&&myArray[i+1]=='l'&&myArray[i+2]=='u'&&myArray[i+3]=='s'){
ans=ans+'+';
}
}
if(S[i]=='m'&&i<=myArray.length-5){
if(myArray[i]=='m'&&myArray[i+1]=='i'&&myArray[i+2]=='n'&&myArray[i+3]=='u'&&myArray[i+4]=='s'){
ans=ans+'-';
}
}
}
}
return ans;
}
res=""
res+="+"
res+="-"