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

lines.shift();
var line;
while (line = lines.shift()) {
    console.log(line.replace(/Hoshino/g, 'Hoshina'));
}