Parse this person name:

Agapito Cuesta, 1338-1406, flourished 1363-1390
user
first_name: Agapito
last_name: Cuesta
middle_names: []
temporal:
- start: 1338
  end: 1406
  type: life_span
- start: 1363
  end: 1390
  type: flourished
titles: []
extra_info: []
assistant