Giving a list of IP segments, you are to determine whether a specified IP is in at least one of these segments.Input
There's only one test case in this problem. The first portion of input is IP segment definitions. Each IP segment is like '
After IP segment definitions, there will be some IPs, each in one line. End-of-file follows the last IP.Output
For each IP, output 'yes' if it is in at least one of the given IP segments, 'no' otherwise.Sample Input
184.108.40.206 220.127.116.11 18.104.22.168 22.214.171.124 # 192.168.1.1 126.96.36.199 188.8.131.52Sample Output
no yes no