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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: D = None
        self.u: G = None
        self.v: E = None
        self.x: G = None
        self.p: A = None
        self.y: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: D = None
        self.t: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.v: A = None
        self.r: G = None
        self.y: H = None
        self.z: C = None
        self.w: B = None
        self.txt = txt

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

h.o = a
h.y = c
h.s = g
l.w = h
l.q = a
f.w = h
f.p = h
f.o = g
f.u = e
f.x = e
f.v = n
f.y = b
g.y = j
g.o = f
n.o = g
j.x = g
j.p = g
j.t = f
e.y = h
e.z = h
e.u = h
b.t = n
b.o = j
b.v = h
b.r = e
b.y = a
b.z = c
b.w = l
a.t = n
a.o = j
a.v = h
a.r = e
a.y = b
a.z = f
a.w = l
c.w = h
c.p = h
c.o = g
c.u = e
c.x = e
c.v = n
c.y = b
assert c.o.o.u.z.s.y.t.v.o.y.txt == "
class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: C = None
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: D = None
        self.u: G = None
        self.v: E = None
        self.x: G = None
        self.p: A = None
        self.y: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: D = None
        self.t: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.v: A = None
        self.r: G = None
        self.y: H = None
        self.z: C = None
        self.w: B = None
        self.txt = txt

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

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