
Picture of a GCPC courier. They are extremely discreet.
Got a job for you. This shady business called Guaranteed Clandestine Private Couriers is trying to hide something. Their public filings and tax records are spotless. As clean as a doctor's hands just before surgery. And you know what that means. They had dirt to scrub off, I'm sure of it. Got my hands on one of their drivers' delivery schedules. You know, a list of tasks to discreetly pick up and deliver an item. I bet we find something off with the schedule. Maybe an item that is picked up but never delivered. Maybe a delivery of something with no records where it came from. Heck, they might even list an item for some task long after the item has been delivered to keep the actual cargo off the books. Anyway, find out if the schedule is legit. If each item mentioned in the schedule is picked up and delivered exactly once, then the guy who cooks their books must be a genius. Guess they are paying him well. Speaking of, this one's double your regular fee. Half upfront for your discretion and the rest when I have your report. Don't call unless you're done!
The input consists of:
Output "yes" if the schedule is valid and "no" otherwise.
4pickup applespickup orangesdropoff orangesdropoff apples
yes
6pickup gcpcpickup teamsdropoff gcpcpickup jurydropoff teamsdropoff gcpc
no
2dropoff bookspickup books
no
4pickup balloondropoff balloonpickup balloondropoff balloon
no
1dropoff fft
no
4pickup timelimitpickup correctdropoff timelimitdropoff correct
yes