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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: D = None
        self.s: B = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: C = None
        self.z: A = None
        self.t: G = None
        self.u: A = None
        self.y: E = None
        self.txt = txt

h = A("h")
k = B("k")
i = C("i")
d = D("d")
c = E("c")
g = F("g")
j = G("j")
l = H("l")
n = B("n")
m = B("m")

h.s = c
h.w = k
h.r = k
h.q = j
h.x = j
h.z = i
k.s = c
k.o = j
i.w = c
i.u = c
i.r = g
i.p = d
i.x = h
i.s = n
d.t = i
d.w = i
d.x = l
d.r = l
d.q = h
d.v = h
d.z = h
d.p = j
c.p = j
g.p = c
g.u = c
g.t = l
g.v = l
g.o = i
g.r = i
g.x = d
j.q = l
j.p = d
j.r = d
j.s = k
l.x = j
l.t = j
l.v = i
l.z = h
l.u = h
l.y = c
n.s = c
n.o = j
m.s = c
m.o = j
assert l.v.p.x.txt == "
class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: B = None
        self.q: G = None
        self.r: B = None
        self.z: C = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: D = None
        self.s: B = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: C = None
        self.z: A = None
        self.t: G = None
        self.u: A = None
        self.y: E = None
        self.txt = txt

h = A("h")
k = B("k")
i = C("i")
d = D("d")
c = E("c")
g = F("g")
j = G("j")
l = H("l")
n = B("n")
m = B("m")

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