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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: D = None
        self.q: B = None
        self.p: C = None
        self.w: A = None
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: D = None
        self.q: B = None
        self.p: C = None
        self.w: A = None
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

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

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

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

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

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