class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: G = None
        self.u: A = None
        self.p: D = None
        self.q: C = None
        self.x: B = None
        self.v: G = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: C = None
        self.s: C = None
        self.r: B = None
        self.q: H = None
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: D = None
        self.x: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: G = None
        self.u: A = None
        self.p: D = None
        self.q: C = None
        self.x: B = None
        self.v: G = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: C = None
        self.s: C = None
        self.r: B = None
        self.q: H = None
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: D = None
        self.x: H = None
        self.txt = txt

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

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

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