Given an object and a part, decide whether the object has that part. For example if you are asked 'gun has barrel?', you need to decide if a gun has a barrel as one of its components or parts, indicating 1 or 0 as your answer respectively. All sentences strictly follow the template 'object has part?.'

Ex Input:
sword has head?

Ex Output:
0


Ex Input:
acacia has trunk?

Ex Output:
1


Ex Input:
horse has top?

Ex Output:

0