class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: I = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: H = None
        self.w: A = None
        self.o: D = None
        self.u: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: B = None
        self.r: B = None
        self.t: G = None
        self.txt = txt

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

k = A("k")
e = B("e")
c = C("c")
m = D("m")
a = E("a")
d = F("d")
b = G("b")
j = H("j")
g = I("g")

k.o = c
e.u = d
e.q = g
e.z = g
e.o = j
e.y = c
c.v = g
c.s = g
c.r = a
c.p = m
c.o = d
c.t = k
c.q = e
c.u = b
m.p = d
m.r = g
m.t = g
a.x = d
a.q = j
a.w = k
a.o = m
a.u = m
d.y = e
b.t = g
b.y = c
j.v = k
j.o = e
j.r = e
j.t = b
g.r = b
g.o = b
g.q = b
g.s = b
g.v = a
g.w = k
g.u = d
g.x = m
g.t = j
assert e.o.t.t.w.o.o.txt == "
class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: I = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: H = None
        self.w: A = None
        self.o: D = None
        self.u: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: B = None
        self.r: B = None
        self.t: G = None
        self.txt = txt

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

k = A("k")
e = B("e")
c = C("c")
m = D("m")
a = E("a")
d = F("d")
b = G("b")
j = H("j")
g = I("g")

k.o = c
e.u = d
e.q = g
e.z = g
e.o = j
e.y = c
c.v = g
c.s = g
c.r = a
c.p = m
c.o = d
c.t = k
c.q = e
c.u = b
m.p = d
m.r = g
m.t = g
a.x = d
a.q = j
a.w = k
a.o = m
a.u = m
d.y = e
b.t = g
b.y = c
j.v = k
j.o = e
j.r = e
j.t = b
g.r = b
g.o = b
g.q = b
g.s = b
g.v = a
g.w = k
g.u = d
g.x = m
g.t = j
assert e.o.t.t.w.o.o.txt == "d"