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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: A = None
        self.p: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: I = None
        self.y: B = None
        self.s: I = None
        self.r: H = None
        self.z: I = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: A = None
        self.w: H = None
        self.x: D = None
        self.t: F = None
        self.r: H = None
        self.p: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: A = None
        self.p: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: I = None
        self.y: B = None
        self.s: I = None
        self.r: H = None
        self.z: I = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: A = None
        self.w: H = None
        self.x: D = None
        self.t: F = None
        self.r: H = None
        self.p: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

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