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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: F = None
        self.v: G = None
        self.t: B = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: A = None
        self.z: C = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: F = None
        self.q: E = None
        self.x: C = None
        self.t: A = None
        self.z: D = None
        self.txt = txt

e = A("e")
h = B("h")
b = C("b")
d = D("d")
i = E("i")
n = F("n")
c = G("c")
m = A("m")
k = C("k")
l = B("l")

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: F = None
        self.v: G = None
        self.t: B = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: A = None
        self.z: C = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: F = None
        self.q: E = None
        self.x: C = None
        self.t: A = None
        self.z: D = None
        self.txt = txt

e = A("e")
h = B("h")
b = C("b")
d = D("d")
i = E("i")
n = F("n")
c = G("c")
m = A("m")
k = C("k")
l = B("l")

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