class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: I = None
        self.t: B = None
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: I = None
        self.t: B = None
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

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