class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: A = None
        self.p: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: D = None
        self.v: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: A = None
        self.s: A = None
        self.z: F = None
        self.q: E = None
        self.u: A = None
        self.o: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: A = None
        self.p: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: D = None
        self.v: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: A = None
        self.s: A = None
        self.z: F = None
        self.q: E = None
        self.u: A = None
        self.o: A = None
        self.txt = txt

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

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