Input: Head: gift box<sep>Tail: put the ring in
Answer: Yes