In the list of tokens, identify 'Person', 'Location', and 'Organisation' and label each accordingly. If the entity spans multiple tokens, use the prefix B-PER, B-LOC, or B-ORG for the first token, and I-PER, I-LOC, or I-ORG for the subsequent tokens of that entity. The beginning of each separate entity should always be labeled with a B-PER, B-LOC, or B-ORG prefix. If the token does not fit into any of the three named categories, or is not a named entity, label it as 'O'. Each line should contain one token and its corresponding label, separated by a colon. Do not combine tokens on your own. The format for each line should be: 'token:label'.

Text: Former
SAS
captain
Andrew
Hastie
,
32
,
is
contesting
the
seat
for
the
Liberal
Party
while
Matt
Keogh
,
33
,
a
dispute
resolution
lawyer
is
flying
the
Labor
flag
.
Answer: 
Former:O
SAS:B-ORG
captain:O
Andrew:B-PER
Hastie:I-PER
,:O
32:O
,:O
is:O
contesting:O
the:O
seat:O
for:O
the:O
Liberal:B-ORG
Party:I-ORG
while:O
Matt:B-PER
Keogh:I-PER
,:O
33:O
,:O
a:O
dispute:O
resolution:O
lawyer:O
is:O
flying:O
the:O
Labor:O
flag:O
.:O