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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: C = None
        self.s: A = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: F = None
        self.z: C = None
        self.u: C = None
        self.s: H = None
        self.w: D = None
        self.t: C = None
        self.y: B = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: C = None
        self.s: A = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: F = None
        self.z: C = None
        self.u: C = None
        self.s: H = None
        self.w: D = None
        self.t: C = None
        self.y: B = None
        self.txt = txt

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

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

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