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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: A = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: G = None
        self.s: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: C = None
        self.w: F = None
        self.p: D = None
        self.t: E = None
        self.y: D = None
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: A = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: G = None
        self.s: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: C = None
        self.w: F = None
        self.p: D = None
        self.t: E = None
        self.y: D = None
        self.v: A = None
        self.txt = txt

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

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