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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: A = None
        self.o: I = None
        self.y: E = None
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: H = None
        self.s: G = None
        self.o: I = None
        self.t: B = None
        self.w: B = None
        self.p: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: B = None
        self.s: A = None
        self.r: A = None
        self.v: G = None
        self.q: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: A = None
        self.o: I = None
        self.y: E = None
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: H = None
        self.s: G = None
        self.o: I = None
        self.t: B = None
        self.w: B = None
        self.p: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: B = None
        self.s: A = None
        self.r: A = None
        self.v: G = None
        self.q: B = None
        self.txt = txt

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

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

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