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:
La legalización parece una decisión lógica en un país en el que ya se aceptaba socialmente y se permitía la prostitución, aunque desde muchos rincones de la sociedad se ha avisado en los últimos meses de los problemas que puede acarrear esta medida revolucionaria.
Postion	Tokenization
1	La
2	legalización
3	parece
4	una
5	decisión
6	lógica
7	en
8	un
9	país
10	en
11	el
12	que
13	ya
14	se
15	aceptaba
16	socialmente
17	y
18	se
19	permitía
20	la
21	prostitución
22	,
23	aunque
24	desde
25	muchos
26	rincones
27	de
28	la
29	sociedad
30	se
31	ha
32	avisado
33	en
34	los
35	últimos
36	meses
37	de
38	los
39	problemas
40	que
41	puede
42	acarrear
43	esta
44	medida
45	revolucionaria
46	.
Position	Tokenization	UPOS	Head	Deprel
1	La	DET	2	det
2	legalización	NOUN	3	nsubj
3	parece	VERB	0	root
4	una	DET	5	det
5	decisión	NOUN	3	xcomp
6	lógica	ADJ	5	amod
7	en	ADP	9	case
8	un	DET	9	det
9	país	NOUN	5	nmod
10	en	ADP	12	case
11	el	DET	12	det
12	que	PRON	15	obl
13	ya	ADV	15	advmod
14	se	PRON	15	expl:pass
15	aceptaba	VERB	9	acl
16	socialmente	ADV	15	advmod
17	y	CCONJ	19	cc
18	se	PRON	19	expl:pass
19	permitía	VERB	15	conj
20	la	DET	21	det
21	prostitución	NOUN	19	nsubj
22	,	PUNCT	32	punct
23	aunque	SCONJ	32	mark
24	desde	ADP	26	case
25	muchos	DET	26	det
26	rincones	NOUN	32	obl
27	de	ADP	29	case
28	la	DET	29	det
29	sociedad	NOUN	26	nmod
30	se	PRON	32	expl:impers
31	ha	AUX	32	aux
32	avisado	VERB	5	advcl
33	en	ADP	36	case
34	los	DET	36	det
35	últimos	ADJ	36	amod
36	meses	NOUN	32	obl
37	de	ADP	39	case
38	los	DET	39	det
39	problemas	NOUN	32	obj
40	que	PRON	42	obj
41	puede	AUX	42	aux
42	acarrear	VERB	39	acl
43	esta	DET	44	det
44	medida	NOUN	42	nsubj
45	revolucionaria	ADJ	44	amod
46	.	PUNCT	3	punct