class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: H = None
        self.z: G = None
        self.w: E = None
        self.x: A = None
        self.t: H = None
        self.y: A = None
        self.s: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: H = None
        self.o: F = None
        self.z: D = None
        self.p: D = None
        self.w: A = None
        self.u: H = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: E = None
        self.p: F = None
        self.q: D = None
        self.o: A = None
        self.txt = txt

l = A("l")
e = B("e")
i = C("i")
m = D("m")
a = E("a")
f = F("f")
k = G("k")
g = H("g")
n = E("n")
j = F("j")

l.u = a
l.o = j
e.q = l
e.s = l
e.r = l
e.v = k
e.y = k
e.w = k
e.t = i
e.x = i
i.t = a
i.p = k
m.p = a
m.q = a
m.r = l
m.x = l
m.t = k
a.p = e
a.r = g
a.t = g
a.z = k
a.w = n
a.x = l
a.y = l
a.s = l
f.s = e
f.q = e
k.t = j
k.o = j
k.v = g
k.u = g
k.z = m
k.p = m
k.w = l
k.q = a
g.w = l
g.o = l
g.v = n
g.p = f
g.q = m
n.p = e
n.r = g
n.t = g
n.z = k
n.w = a
n.x = l
n.y = l
n.s = l
j.s = e
j.q = e
assert e.r.u.z.q.txt == "
class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: H = None
        self.z: G = None
        self.w: E = None
        self.x: A = None
        self.t: H = None
        self.y: A = None
        self.s: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: H = None
        self.o: F = None
        self.z: D = None
        self.p: D = None
        self.w: A = None
        self.u: H = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: E = None
        self.p: F = None
        self.q: D = None
        self.o: A = None
        self.txt = txt

l = A("l")
e = B("e")
i = C("i")
m = D("m")
a = E("a")
f = F("f")
k = G("k")
g = H("g")
n = E("n")
j = F("j")

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