while(0<1)println(if(readLine matches"(?i).*lo+g ?rid(er( |!|$)|a).*")1 else 0)