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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: C = None
        self.u: F = None
        self.z: H = None
        self.v: G = None
        self.s: H = None
        self.t: C = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: G = None
        self.w: E = None
        self.r: F = None
        self.x: E = None
        self.y: E = None
        self.z: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: E = None
        self.s: B = None
        self.o: E = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: C = None
        self.u: F = None
        self.z: H = None
        self.v: G = None
        self.s: H = None
        self.t: C = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: G = None
        self.w: E = None
        self.r: F = None
        self.x: E = None
        self.y: E = None
        self.z: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: E = None
        self.s: B = None
        self.o: E = None
        self.p: E = None
        self.txt = txt

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

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

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

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