#include<iostream> using namespace std; int main(){ int Test; cin>>Test; while(Test>0){ int n; int k; cin>>n; cin>>k; cout<<k/2<<endl; Test--; } }