You are given an original reference as well as a system reference. Your task is to judge the quality of the system reference. If the utterance is grammatically correct and fluent output 1, else output 0.

Input: Consider Input: System Reference: thank you the grand hyatt san francisco allows dogs.
Original Reference: grand hyatt san francisco is a hotel where dogs are allowed.

Output: 0


Input: Consider Input: System Reference: where is it near?
Original Reference: where is it near by?.

Output: 1


Input: Consider Input: System Reference: x is a restaurant in the cheap on the riverside area near x.
Original Reference: x is a cheap restaurant in the riverside area near x.


Output: 1