You are given a conversation between two people. 'Person1:' and 'Person2:' are used to separate their respective dialogues. If the conversation begins with a question, label it '1' otherwise '0'.

Ex Input:
Person1: Excuse me , I want to go to Galion by ship . Is there a ship to Dalian ?
Person2: Yes , there is . There is only one ship there every day .
Person1: What time does it leave ?
Person2: It leaves at 9:30 a . m ..
Person1: Could you please tell me about the cabins ?
Person2: Yes , all the cabins are fit for two .
Person1: Then where can I catch it ?
Person2: At Pier Five .
Person1: Thank you .

Ex Output:
1

Ex Input:
Person1: Hi Jackie . You don't look too well . What's going on ?
Person2: It's nothing . I'm just a little stressed out .
Person1: Why ? What's stressing you out ?
Person2: School . Since I was working part time , I had a difficult time keeping up with class . Now that we have exams coming up , I'm totally freaking out .
Person1: The best thing to do is study as much as you can . I'm sure you'll do alright .
Person2: I hope so . I guess I won't be sleeping for the next 3 days . That's what it'll take .
Person1: I have to study for an exam too . Why don't we study together . We can encourage each other .
Person2: That will be great .

Ex Output:
1

Ex Input:
Person1: I'm really happy that you came to visit me .
Person2: I really missed you a lot .
Person1: I've been missing you like crazy .
Person2: I don't understand why you haven't come to visit me .
Person1: Lately , I've been quite busy .
Person2: Tell me what you've been up to .
Person1: I've really been working a lot lately .
Person2: I've been pretty busy myself .
Person1: So what have you been up to ?
Person2: I've just been working a lot .
Person1: Whatever the reason may be , I'm glad you visited me .
Person2: I'm glad I did too .

Ex Output:
0