class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: B = None
        self.t: H = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: D = None
        self.p: A = None
        self.x: E = None
        self.s: E = None
        self.z: D = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: H = None
        self.o: B = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: D = None
        self.r: E = None
        self.u: C = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: C = None
        self.w: A = None
        self.z: A = None
        self.v: A = None
        self.q: E = None
        self.p: G = None
        self.y: G = None
        self.txt = txt

d = A("d")
g = B("g")
b = C("b")
c = D("c")
a = E("a")
n = F("n")
e = G("e")
j = H("j")
l = A("l")
i = G("i")

d.v = n
d.x = g
d.t = j
d.o = c
g.u = l
g.p = l
g.q = c
g.z = c
g.x = a
g.s = a
g.r = a
b.o = g
b.q = a
c.p = b
a.z = c
a.w = c
n.y = g
n.o = g
n.r = g
n.v = j
e.p = a
e.r = a
e.t = c
e.x = c
e.u = b
j.s = c
j.x = b
j.w = d
j.v = d
j.z = l
j.q = a
j.p = e
j.y = i
l.v = n
l.x = g
l.t = j
l.o = c
i.p = a
i.r = a
i.t = c
i.x = c
i.u = b
assert d.v.r.z.p.o.u.txt == "
class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: B = None
        self.t: H = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: D = None
        self.p: A = None
        self.x: E = None
        self.s: E = None
        self.z: D = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: H = None
        self.o: B = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: D = None
        self.r: E = None
        self.u: C = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: C = None
        self.w: A = None
        self.z: A = None
        self.v: A = None
        self.q: E = None
        self.p: G = None
        self.y: G = None
        self.txt = txt

d = A("d")
g = B("g")
b = C("b")
c = D("c")
a = E("a")
n = F("n")
e = G("e")
j = H("j")
l = A("l")
i = G("i")

d.v = n
d.x = g
d.t = j
d.o = c
g.u = l
g.p = l
g.q = c
g.z = c
g.x = a
g.s = a
g.r = a
b.o = g
b.q = a
c.p = b
a.z = c
a.w = c
n.y = g
n.o = g
n.r = g
n.v = j
e.p = a
e.r = a
e.t = c
e.x = c
e.u = b
j.s = c
j.x = b
j.w = d
j.v = d
j.z = l
j.q = a
j.p = e
j.y = i
l.v = n
l.x = g
l.t = j
l.o = c
i.p = a
i.r = a
i.t = c
i.x = c
i.u = b
assert d.v.r.z.p.o.u.txt == "l"