const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const lines = input.trim().split('\n');

for(let i=0;i<input;i++){
    let a=input;
    let b=input;
    let prod=1;
    while(a>1){
        let temp=a/b;
        prod=prod*temp;
        a=a-temp;
        b--;
    }
    console.log(prod)
}
