import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); Set values = Set.of(s,t); if (!values.contains("watermelon")){ System.out.println("watermelon"); }else if (!values.contains("beachball")){ System.out.println("beachball"); }else{ System.out.println("shrinebell"); } } }