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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: G = None
        self.p: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: A = None
        self.u: D = None
        self.t: B = None
        self.q: H = None
        self.txt = txt

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

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

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

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

k.w = i
k.z = i
k.v = b
c.t = h
i.z = c
i.t = j
i.p = e
m.r = e
m.w = e
m.s = d
m.p = j
m.x = c
m.v = h
e.w = i
e.x = d
e.u = m
e.t = c
e.q = h
b.v = h
b.s = d
b.r = c
b.u = i
j.v = b
j.q = b
h.x = m
h.r = k
h.u = b
d.w = i
d.z = i
d.v = b
assert e.q.u.s.v.txt == "
class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: C = None
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: G = None
        self.p: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: A = None
        self.u: D = None
        self.t: B = None
        self.q: H = None
        self.txt = txt

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

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

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

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

k.w = i
k.z = i
k.v = b
c.t = h
i.z = c
i.t = j
i.p = e
m.r = e
m.w = e
m.s = d
m.p = j
m.x = c
m.v = h
e.w = i
e.x = d
e.u = m
e.t = c
e.q = h
b.v = h
b.s = d
b.r = c
b.u = i
j.v = b
j.q = b
h.x = m
h.r = k
h.u = b
d.w = i
d.z = i
d.v = b
assert e.q.u.s.v.txt == "b"