{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"有一群好人和一群坏人,好人永远说真话,坏人永远说假话。现给出一组话,额能否唯一确定每个人是好人还是坏人。 "}},{"title":"Input","value":{"format":"HTML","content":"对于每组数据\n第一行包括三个整数 n p q 表示话语的数量 好人和坏人的数量\n\n接下来n行 形式如 x1 y1 yes/no \n\n表示x1 说y1 是 好人/坏人\n以0 0 0 结尾。\n"}},{"title":"Output","value":{"format":"HTML","content":"如果能唯一确定,输出所有的好人(每行一个,增序,以end结尾),否则输出no;"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e2 1 1\n1 2 no\n2 1 no\n3 2 1\n1 1 yes\n2 2 yes\n3 3 yes\n2 2 1\n1 2 yes\n2 3 no\n5 4 3\n1 2 yes\n1 3 no\n4 5 yes\n5 6 yes\n6 7 no\n0 0 0\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003eno\nno\n1\n2\nend\n3\n4\n5\n6\nend\u003c/pre\u003e"}}]}