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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: A = None
        self.z: C = None
        self.y: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: I = None
        self.v: F = None
        self.q: B = None
        self.w: F = None
        self.t: G = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: A = None
        self.z: C = None
        self.y: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: I = None
        self.v: F = None
        self.q: B = None
        self.w: F = None
        self.t: G = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

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