process.stdin.resume();
process.stdin.setEncoding('utf8');
var lines = [];
var reader = require('readline').createInterface({
input: process.stdin,
output: process.stdout
});
reader.on('line', (line) => {
lines.push(line);
});
reader.on('close', () => {
const line1 = lines[0].split(" ");
const a = Number(line1[0]);
const b = Number(line1[1]);
const R = Number(line1[2]);
const N = Number(lines[1]);
for(let i= 0; i < N; i++){
let line_tmp = lines[i+2].split(" ")
let x_i = Number(line_tmp[0]);
let y_i = Number(line_tmp[1]);
let noise = ((x_i - a)*(x_i - a)) + ((y_i - b)*(y_i - b)) >= R * R;
if(noise) {
console.log("silent");
}else{
console.log("noisy");
}
}
});