class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: C = None
        self.u: C = None
        self.r: D = None
        self.z: G = None
        self.v: D = None
        self.t: B = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: G = None
        self.y: C = None
        self.t: A = None
        self.o: H = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: A = None
        self.o: A = None
        self.w: B = None
        self.z: D = None
        self.r: F = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: A = None
        self.p: B = None
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: G = None
        self.y: C = None
        self.t: A = None
        self.o: H = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: A = None
        self.o: A = None
        self.w: B = None
        self.z: D = None
        self.r: F = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: A = None
        self.p: B = None
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: B = None
        self.txt = txt

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

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

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

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