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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: D = None
        self.t: A = None
        self.w: H = None
        self.s: D = None
        self.o: D = None
        self.q: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: B = None
        self.w: F = None
        self.q: E = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: G = None
        self.t: C = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: B = None
        self.z: E = None
        self.x: B = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: H = None
        self.u: D = None
        self.s: H = None
        self.v: G = None
        self.w: F = None
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: D = None
        self.t: A = None
        self.w: H = None
        self.s: D = None
        self.o: D = None
        self.q: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: B = None
        self.w: F = None
        self.q: E = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: G = None
        self.t: C = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: B = None
        self.z: E = None
        self.x: B = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: H = None
        self.u: D = None
        self.s: H = None
        self.v: G = None
        self.w: F = None
        self.r: G = None
        self.txt = txt

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

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