class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: C = None
        self.t: G = None
        self.v: I = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: I = None
        self.u: A = None
        self.r: D = None
        self.z: D = None
        self.t: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: A = None
        self.r: C = None
        self.w: I = None
        self.x: E = None
        self.s: B = None
        self.q: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: E = None
        self.q: F = None
        self.v: D = None
        self.s: A = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: A = None
        self.r: F = None
        self.v: F = None
        self.u: B = None
        self.w: B = None
        self.q: H = None
        self.txt = txt

i = A("i")
f = B("f")
h = C("h")
d = D("d")
j = E("j")
c = F("c")
n = G("n")
m = H("m")
e = I("e")
g = C("g")

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: I = None
        self.u: A = None
        self.r: D = None
        self.z: D = None
        self.t: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: A = None
        self.r: C = None
        self.w: I = None
        self.x: E = None
        self.s: B = None
        self.q: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: E = None
        self.q: F = None
        self.v: D = None
        self.s: A = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: A = None
        self.r: F = None
        self.v: F = None
        self.u: B = None
        self.w: B = None
        self.q: H = None
        self.txt = txt

i = A("i")
f = B("f")
h = C("h")
d = D("d")
j = E("j")
c = F("c")
n = G("n")
m = H("m")
e = I("e")
g = C("g")

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