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

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

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: E = None
        self.v: B = None
        self.w: C = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: E = None
        self.v: B = None
        self.w: C = None
        self.t: B = None
        self.txt = txt

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

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

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

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