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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: H = None
        self.o: G = None
        self.u: G = None
        self.t: E = None
        self.q: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: B = None
        self.t: D = None
        self.p: E = None
        self.v: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.u: F = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: H = None
        self.s: C = None
        self.r: C = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: H = None
        self.o: G = None
        self.u: G = None
        self.t: E = None
        self.q: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: B = None
        self.t: D = None
        self.p: E = None
        self.v: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.u: F = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: H = None
        self.s: C = None
        self.r: C = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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