https://www.acmicpc.net/problem/20499
using System;
class Program
{
static void Main() {
string[] s=Console.ReadLine().Split("/");
int k=int.Parse(s[0]);
int d=int.Parse(s[1]);
int a=int.Parse(s[2]);
if(k+a<d || d==0) Console.Write("hasu");
else Console.Write("gosu");
}
}