#include<iostream>
using namespace std;
int main()
{
int zushu;
while( cin>>zushu )
{
int x,t;
while( zushu-- )
{
int n;
cin>>n;
t=n/150; //多少个150
x=n%150;
while( x>50 && t>0 )
{
t--;
x-=50;
}
if( x==0 )
printf("0/n");
else
printf("%d/n",x);
}
}
return 0;
}
08-13
08-13
08-13