class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: E = None
        self.s: C = None
        self.q: A = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: A = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: C = None
        self.z: E = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: C = None
        self.w: A = None
        self.t: B = None
        self.q: A = None
        self.txt = txt

j = A("j")
e = B("e")
b = C("b")
a = D("a")
g = E("g")
c = E("c")
d = D("d")
k = A("k")
f = E("f")
i = C("i")

j.v = e
j.r = c
j.s = i
j.q = k
j.x = g
e.q = g
e.u = g
e.s = k
b.x = k
b.w = e
a.o = d
a.v = i
a.z = g
a.r = j
g.r = k
g.q = k
g.v = b
g.w = j
g.t = e
c.r = j
c.v = i
c.w = k
c.q = k
c.t = e
d.o = a
d.v = i
d.z = g
d.r = j
k.v = e
k.r = g
k.x = g
k.s = i
k.q = j
f.r = k
f.v = b
f.w = j
f.q = j
f.t = e
i.x = k
i.w = e
assert g.r.q.v.u.t.s.v.u.t.u.txt == "
class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: E = None
        self.s: C = None
        self.q: A = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: A = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: C = None
        self.z: E = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: C = None
        self.w: A = None
        self.t: B = None
        self.q: A = None
        self.txt = txt

j = A("j")
e = B("e")
b = C("b")
a = D("a")
g = E("g")
c = E("c")
d = D("d")
k = A("k")
f = E("f")
i = C("i")

j.v = e
j.r = c
j.s = i
j.q = k
j.x = g
e.q = g
e.u = g
e.s = k
b.x = k
b.w = e
a.o = d
a.v = i
a.z = g
a.r = j
g.r = k
g.q = k
g.v = b
g.w = j
g.t = e
c.r = j
c.v = i
c.w = k
c.q = k
c.t = e
d.o = a
d.v = i
d.z = g
d.r = j
k.v = e
k.r = g
k.x = g
k.s = i
k.q = j
f.r = k
f.v = b
f.w = j
f.q = j
f.t = e
i.x = k
i.w = e
assert g.r.q.v.u.t.s.v.u.t.u.txt == "g"