class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: F = None
        self.v: F = None
        self.o: A = None
        self.y: A = None
        self.p: H = None
        self.w: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: C = None
        self.o: H = None
        self.u: H = None
        self.v: C = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: A = None
        self.u: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: C = None
        self.o: H = None
        self.u: H = None
        self.v: C = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: A = None
        self.u: F = None
        self.txt = txt

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

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