https://www.acmicpc.net/problem/20499
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
String st[]=s.nextLine().split("/");
int k=Integer.parseInt(st[0]);
int d=Integer.parseInt(st[1]);
int a=Integer.parseInt(st[2]);
if(k+a<d || d==0) System.out.print("hasu");
else System.out.print("gosu");
}
}