You will be given a definition of a task first, then some input of the task.
In this task, you are given a text from a post. Your task is to find all of the proper nouns and label them. The labels are <B-PER>, <I-PER> for persons; <B-ORG>, <I-ORG> for organizations; <B-LOC>, <I-LOC> for locations; and <B-MISC>, <I-MISC> for other nouns. The capital 'B' denotes the first word of a proper noun phrase. The capital 'I' denotes all following words of the same noun phrase. If a word is not a part of a proper noun phrase, do not label it.

Spokesman Glyn Davies said in a statement that the agreement followed direct U.S. contacts with Massoud Barzani , leader of the Kurdistan Democratic Party ( KDP ) , and Jalal Talabani , leader of the Patriotic Union of Kurdistan ( PUK ) . 
Output:
Spokesman Glyn <B-PER> Davies <I-PER> said in a statement that the agreement followed direct U.S. <B-LOC> contacts with Massoud <B-PER> Barzani <I-PER> , leader of the Kurdistan <B-ORG> Democratic <I-ORG> Party <I-ORG> ( KDP <B-ORG> ) , and Jalal <B-PER> Talabani <I-PER> , leader of the Patriotic <B-ORG> Union <I-ORG> of <I-ORG> Kurdistan <I-ORG> ( PUK <B-ORG> ) . 