class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: A = None
        self.t: F = None
        self.x: G = None
        self.v: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: A = None
        self.r: H = None
        self.w: F = None
        self.s: H = None
        self.q: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: E = None
        self.z: A = None
        self.p: A = None
        self.q: G = None
        self.w: E = None
        self.x: A = None
        self.s: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: A = None
        self.t: F = None
        self.x: G = None
        self.v: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: A = None
        self.r: H = None
        self.w: F = None
        self.s: H = None
        self.q: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: E = None
        self.z: A = None
        self.p: A = None
        self.q: G = None
        self.w: E = None
        self.x: A = None
        self.s: C = None
        self.txt = txt

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

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