#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

int main()
{
    int n;
    cin >> n;
    cin.ignore();

    while(--n >= 0){
        string s;
        getline(cin, s);
        int i = 0;
        for(;;){
            i = s.find("Hoshino", i);
            if(i == string::npos)
                break;
            s.replace(i, 7, "Hoshina");
        }
        cout << s << endl;
    }
}
#include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <cmath>
#include <string>
using namespace std;

#define ll long long
#define vvi vector<vector<int>>
#define All(X) X.begin(),X.end()

int main(){
	int n;
	cin >> n;
	ll int tmp;
	ll int sum,min,max;
	max = -1000010;
	min = 9999999;
	sum = 0;
	for(int i=0;i<n;i++){
		cin >> tmp;
		if(tmp<min) min = tmp;
		if(tmp>max) max = tmp;
		sum += tmp;
	}
	cout << min <<" " << max << " " << sum << endl;

}