#include <iostream>
using namespace std;
int main() {
int t=0, r=0 ;
(-5000<=t<=5000);
cin>>t;
while(t--)
cin>>r;
if(r>=1900)
cout<<"Division 1"<< endl;
else if (r>=1600)
cout<<"Division 2"<< endl ;
else if(r>=1400)
cout<<"Division 3"<< endl;
else
cout<<"Division 4"<< endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CmludCB0PTAsIHI9MCA7IAooLTUwMDA8PXQ8PTUwMDApOyAKY2luPj50OwoKd2hpbGUodC0tKQpjaW4+PnI7CgppZihyPj0xOTAwKQpjb3V0PDwiRGl2aXNpb24gMSI8PCBlbmRsOwplbHNlIGlmIChyPj0xNjAwKSAKY291dDw8IkRpdmlzaW9uIDIiPDwgZW5kbCA7CmVsc2UgaWYocj49MTQwMCkgCmNvdXQ8PCJEaXZpc2lvbiAzIjw8IGVuZGw7CmVsc2UgCmNvdXQ8PCJEaXZpc2lvbiA0Ijw8IGVuZGw7CgoJcmV0dXJuIDA7Cn0=