#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; for(int i=1;i>=a;i++){ if(a<=6&&b<=6){ if(a>b)cout<<"DXZ"; else cout<<"YY"; if(a=b) cout<<"DOGFALL"; } if(a>6&&b>6){ if(a<b)cout<<"DXY"; else cout<<"YY"; if(a=b)cout<<"DOGFALL"; } return 0; }