In this task, you are given a sentence which contains a motion and your task is to identify the physical entities involved in the motion. The input sentence can have more than one entity and also there is at least one entity that takes part in physical motion. There are two types of entities which are animate (beings that are alive) and inanimate entities (beings that are not alive).

Ex Input:
 He prepares a large dish of pasta, which he cooks in the machine.

Ex Output:
He


Ex Input:
 The girl wrestler tries to wrestle using both arms and her body but falls to the floor.

Ex Output:
girl


Ex Input:
After a time he got up, shook hands with David and went home, the dog at his heels.

Ex Output:

David