class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: I = None
        self.s: H = None
        self.u: G = None
        self.p: G = None
        self.z: G = None
        self.v: H = None
        self.x: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: F = None
        self.x: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: C = None
        self.y: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: F = None
        self.x: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: C = None
        self.y: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: B = None
        self.txt = txt

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

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