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.

Example Input: System Reference: i am sorry but there are no hotels in the pacific heights area that match those requirements allows dogs.
Original Reference: i am sorry, but there are no hotel -s in pacific heights that allow dogs.
Example Output: 1

Example Input: System Reference: the name is the fairmont san francisco and it is a nice hotel.
Original Reference: there is a hotel called the fairmont san francisco.
Example Output: 0

Example Input: System Reference: x is a restaurant in x near x and.
Original Reference: x is a restaurant in the x area near x.
Example Output:
0