As a helpful and smart assistant, your task is to parse a given text in any language to Universal Dependency (UD) format including POS tags and dependency relations (HEAD and DEPREL).
Key Components of UD Annotation:
1. Tokens: The fundamental units within UD are tokens. These can be individual words, punctuation marks, or even parts of multi-word expressions. Each token has several associated attributes.
2. UPOS Tags: The UPOS field in the CoNLL-U format represents the universal part-of-speech tag assigned to each word. This tag is part of a universal POS tag set designed to be applicable across different languages. The UPOS tags include categories such as NOUN, VERB, ADJ (adjective), ADV (adverb), PRON (pronoun), DET (determiner), and more. 
3. Dependency Relations: Dependency relations are the core of the syntactic representation. They form a tree structure over the tokens in a sentence. Here's how they work:
    - HEAD: This field indicates the head of the current word. The head is the word that the current word is connected to in the dependency parse tree. The value is an integer that corresponds to the ID of the head word within the same sentence. A value of zero (0) indicates that the word is the root of the sentence.
    - DEPREL: The DEPREL field specifies the type of dependency relation between the current word and its head (as specified in the HEAD field). The value is a universal dependency relation or a language-specific subtype of such a relation.
Note: Blank lines are used to mark the boundaries between sentences.
Example:
Let's analyze this sentence with its UD annotation:
"The big dog chased the cat."
1. Tokenization:
- The
- big
- dog
- chased
- the
- cat
- .
2. UPOS Tags:
- The: DET
- big: ADJ
- dog: NOUN
- chased: VERB
- the: DET
- cat: NOUN
- .: PUNCT
3. Head node (parent):
- The: the parent of this word is "dog" at position 3
- big: the parent of this word is "dog" at position 3
- dog: the parent of this word is "chased" at position 4
- chased: this is the root node, therefore its head is 0
- the: the parent of this word is "cat" at position 6
- cat: the parent of this word is "chased" at position 4
- .: the parent of this word is "chased" at position 4
3. Dependency Relations:
- root(ROOT, chased)
- det(dog, The)
- amod(dog, big)
- nsubj(chased, dog)
- det(cat, the)
- obj(chased, cat)
Combining the above annotations, the final output in UD format is:
Position	Tokenization	UPOS	Head	Deprel
1	The	DET	3	det
2	big	ADJ	3	amod
3	dog	NOUN	4	nsubj
4	chased	VERB	0	ROOT
5	the	DET	6	det
6	cat	NOUN	4	obj
7	.	PUNCT	4	punct
Generate UD annotations for the following tokenized text:
Endesa España ha invertido 8.000 millones de dólares en el sector de electricidad de 12 países de América Latina; y Repsol, en tanto, posee inversiones cercanas 9.000 millones de dólares en la industria del petróleo y la energía.
Postion	Tokenization
1	Endesa
2	España
3	ha
4	invertido
5	8.000
6	millones
7	de
8	dólares
9	en
10	el
11	sector
12	de
13	electricidad
14	de
15	12
16	países
17	de
18	América
19	Latina
20	;
21	y
22	Repsol
23	,
24	en
25	tanto
26	,
27	posee
28	inversiones
29	cercanas
30	9.000
31	millones
32	de
33	dólares
34	en
35	la
36	industria
37	del
38	petróleo
39	y
40	la
41	energía
42	.
Position	Tokenization	UPOS	Head	Deprel
1	Endesa	PROPN	4	nsubj
2	España	PROPN	1	flat
3	ha	AUX	4	aux
4	invertido	VERB	0	root
5	8.000	NUM	6	nummod
6	millones	NOUN	4	obj
7	de	ADP	8	case
8	dólares	NOUN	6	nmod
9	en	ADP	11	case
10	el	DET	11	det
11	sector	NOUN	4	obl
12	de	ADP	13	case
13	electricidad	NOUN	11	nmod
14	de	ADP	16	case
15	12	NUM	16	nummod
16	países	NOUN	11	nmod
17	de	ADP	18	case
18	América	PROPN	16	nmod
19	Latina	PROPN	18	flat
20	;	PUNCT	27	punct
21	y	CCONJ	27	cc
22	Repsol	PROPN	27	nsubj
23	,	PUNCT	24	punct
24	en	ADP	27	advmod
25	tanto	NOUN	24	fixed
26	,	PUNCT	24	punct
27	posee	VERB	4	conj
28	inversiones	NOUN	27	obj
29	cercanas	ADJ	28	amod
30	9.000	NUM	31	nummod
31	millones	NOUN	28	appos
32	de	ADP	33	case
33	dólares	NOUN	31	nmod
34	en	ADP	36	case
35	la	DET	36	det
36	industria	NOUN	28	nmod
37	del	ADP	38	case
38	petróleo	NOUN	36	nmod
39	y	CCONJ	41	cc
40	la	DET	41	det
41	energía	NOUN	38	conj
42	.	PUNCT	4	punct