#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CmludCB0PTAsIHI9MCA7IAooLTUwMDA8PXQ8PTUwMDApOyAKY2luPj50OwoKd2hpbGUodC0tKQp7CmNpbj4+cjsKCmlmKHI+PTE5MDApCmNvdXQ8PCJEaXZpc2lvbiAxIjw8IGVuZGw7CmVsc2UgaWYgKHI+PTE2MDApIApjb3V0PDwiRGl2aXNpb24gMiI8PCBlbmRsIDsKZWxzZSBpZihyPj0xNDAwKSAKY291dDw8IkRpdmlzaW9uIDMiPDwgZW5kbDsKZWxzZSAKY291dDw8IkRpdmlzaW9uIDQiPDwgZW5kbDsKfQoKCXJldHVybiAwOwp9