#include <iostream>
using namespace std;
int main(){
char s[1000];
while(cin >> s){
int a = 0, b = 0, c = 0, countZ = 0, countJ = 0;
for(int i=0; i<1000; i++){
if(s[i] == '\0') break;
else if(s[i] == 'z') countZ ++;
else if(s[i] == 'j') countJ ++;
else if(countZ==0 && s[i]=='o') a ++;
else if(countZ>0 && s[i]=='o' && countJ==0) b ++;
else if(countZ>0 && s[i]=='o' && countJ>0) c ++;
}
if(countZ==1 && countJ==1 && b>0 && (a*b==c)) cout << "Accepted" << endl;
else cout << "Wrong Answer" << endl;
}
return 0;
}