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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: E = None
        self.w: I = None
        self.p: D = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: C = None
        self.p: G = None
        self.u: D = None
        self.w: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: E = None
        self.w: I = None
        self.p: D = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: C = None
        self.p: G = None
        self.u: D = None
        self.w: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: A = None
        self.txt = txt

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

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