class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: E = None
        self.t: B = None
        self.o: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: H = None
        self.z: F = None
        self.t: H = None
        self.p: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: D = None
        self.w: A = None
        self.o: G = None
        self.p: H = None
        self.x: H = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: H = None
        self.z: F = None
        self.t: H = None
        self.p: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: D = None
        self.w: A = None
        self.o: G = None
        self.p: H = None
        self.x: H = None
        self.txt = txt

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

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

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

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