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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: C = None
        self.s: H = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: B = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: C = None
        self.s: H = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: B = None
        self.w: C = None
        self.txt = txt

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

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

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

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