class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: E = None
        self.x: F = None
        self.w: C = None
        self.v: C = None
        self.z: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: B = None
        self.x: B = None
        self.r: I = None
        self.t: C = None
        self.y: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: D = None
        self.v: B = None
        self.o: E = None
        self.q: C = None
        self.z: B = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: E = None
        self.o: F = None
        self.w: F = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: B = None
        self.x: B = None
        self.r: I = None
        self.t: C = None
        self.y: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: D = None
        self.v: B = None
        self.o: E = None
        self.q: C = None
        self.z: B = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: E = None
        self.o: F = None
        self.w: F = None
        self.y: F = None
        self.txt = txt

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

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

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