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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: G = None
        self.t: G = None
        self.w: D = None
        self.x: A = None
        self.z: B = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: D = None
        self.x: C = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: G = None
        self.t: G = None
        self.w: D = None
        self.x: A = None
        self.z: B = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: D = None
        self.x: C = None
        self.txt = txt

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

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

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