a={"watermelon","beachball","shrinebell"} a.remove(input().strip()) a.remove(input().strip()) print(*a)