class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: G = None
        self.z: H = None
        self.p: B = None
        self.s: D = None
        self.r: G = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: D = None
        self.r: E = None
        self.w: D = None
        self.p: G = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: E = None
        self.p: E = None
        self.s: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: E = None
        self.y: E = None
        self.q: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: D = None
        self.r: E = None
        self.w: D = None
        self.p: G = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: E = None
        self.p: E = None
        self.s: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: E = None
        self.y: E = None
        self.q: F = None
        self.txt = txt

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

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