class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: H = None
        self.t: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: G = None
        self.o: B = None
        self.s: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: A = None
        self.u: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: I = None
        self.r: G = None
        self.x: E = None
        self.s: D = None
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: D = None
        self.y: E = None
        self.t: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: G = None
        self.o: B = None
        self.s: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: A = None
        self.u: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: I = None
        self.r: G = None
        self.x: E = None
        self.s: D = None
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: D = None
        self.y: E = None
        self.t: G = None
        self.txt = txt

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

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