class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: F = None
        self.v: E = None
        self.z: E = None
        self.u: C = None
        self.r: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: C = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: H = None
        self.o: B = None
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: E = None
        self.r: D = None
        self.s: H = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: C = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: H = None
        self.o: B = None
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: E = None
        self.r: D = None
        self.s: H = None
        self.txt = txt

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

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

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

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