class A:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: H = None
        self.q: H = None
        self.o: H = None
        self.y: G = None
        self.t: H = None
        self.r: G = None
        self.p: H = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: I = None
        self.u: H = None
        self.p: A = None
        self.o: A = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: E = None
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.x: B = None
        self.r: C = None
        self.p: B = None
        self.o: F = None
        self.q: C = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: F = None
        self.r: F = None
        self.q: I = None
        self.s: I = None
        self.p: I = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: A = None
        self.w: A = None
        self.s: F = None
        self.o: B = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: E = None
        self.v: H = None
        self.r: D = None
        self.q: A = None
        self.p: A = None
        self.t: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: I = None
        self.u: H = None
        self.p: A = None
        self.o: A = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: E = None
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.x: B = None
        self.r: C = None
        self.p: B = None
        self.o: F = None
        self.q: C = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: F = None
        self.r: F = None
        self.q: I = None
        self.s: I = None
        self.p: I = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: A = None
        self.w: A = None
        self.s: F = None
        self.o: B = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: E = None
        self.v: H = None
        self.r: D = None
        self.q: A = None
        self.p: A = None
        self.t: G = None
        self.txt = txt

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

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