class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: D = None
        self.o: E = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.w: A = None
        self.z: G = None
        self.x: F = None
        self.y: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: A = None
        self.y: G = None
        self.o: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: B = None
        self.z: B = None
        self.y: H = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.w: A = None
        self.z: G = None
        self.x: F = None
        self.y: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: A = None
        self.y: G = None
        self.o: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: B = None
        self.z: B = None
        self.y: H = None
        self.txt = txt

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

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

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

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