class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: B = None
        self.r: H = None
        self.x: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: C = None
        self.q: C = None
        self.z: G = None
        self.o: F = None
        self.p: C = None
        self.y: C = None
        self.v: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: A = None
        self.r: A = None
        self.s: B = None
        self.z: C = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: E = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: C = None
        self.q: C = None
        self.z: G = None
        self.o: F = None
        self.p: C = None
        self.y: C = None
        self.v: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: A = None
        self.r: A = None
        self.s: B = None
        self.z: C = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: E = None
        self.w: C = None
        self.txt = txt

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

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