/* Name: 字符串--hdu--3783--ZOJ Author: shen_渊 Date: 17/04/17 20:58 Description: 明天开始刷字符串的题,先来道水题*/#include<cstring>#include<iostream>using namespace std;];int main(){ string str; while(cin>>str){ memset(ct,,sizeof(ct)); if(str == "E")break; ]++; ],o = ct[],j = ct[]; || o> || j>){ )cout<<"Z";z--; )cout<<"O";o--; )cout<<"J";j--; } cout<<endl; } ;}