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: I hear you are moving to Dalian .
Person2: Yes . I found a very good job down here .
Person1: Well , we'll certainly miss you here .
Person2: I am going to miss you , too .
Person1: Let's keep in touch .
Person2: OK . I will write to you as soon as I get there .

Ex Output:
0

Ex Input:
Person1: Have any plans for the weekend , Tom ?
Person2: Yes . I am going for a hike around the Qinghai Lake .
Person1: Oh , do you go hiking often ?
Person2: I go as much as I can . I love hiking , because you can really get in touch with nature .
Person1: It would be nice to get out of the city . Do you want some company ?
Person2: Sure . But it will be a long hike 30 miles in three days . Have you been hiking before ?
Person1: Yeah , I go a lot too . I saw a bear and a lion on my last hike .
Person2: Wow . You must have been pretty far away from the city .
Person1: Yeah , my friend and I hiked in a very wild part of the national forest .
Person2: Well , bring him along to . We will have a great time this weekend .
Person1: Thanks . I will ask him .

Ex Output:
1

Ex Input:
Person1: Can your dog do any tricks ?
Person2: Sure he can . He can shake hands , roll over , and even play dead .
Person1: I wish I had a dog . My cat can't do any tricks .
Person2: Yeah , but sometimes Bingo wants to play with me , but I don't have time .
Person1: So who takes care of him then ?
Person2: My little brother likes to play with him . He even gives him a bath every week .
Person1: I can't do that with my cat . She hates water .
Person2: You know , you're right . Maybe you should get a dog .

Ex Output:
1