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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: B = None
        self.q: D = None
        self.o: B = None
        self.y: H = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: F = None
        self.s: D = None
        self.o: A = None
        self.u: F = None
        self.t: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: B = None
        self.q: D = None
        self.o: B = None
        self.y: H = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: F = None
        self.s: D = None
        self.o: A = None
        self.u: F = None
        self.t: H = None
        self.txt = txt

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

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

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