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

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

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: E = None
        self.q: C = None
        self.r: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: G = None
        self.t: B = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: E = None
        self.q: C = None
        self.r: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: G = None
        self.t: B = None
        self.y: H = None
        self.txt = txt

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

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

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

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