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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.v: H = None
        self.u: H = None
        self.y: D = None
        self.z: F = None
        self.w: H = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: E = None
        self.o: A = None
        self.t: A = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: H = None
        self.o: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.v: H = None
        self.u: H = None
        self.y: D = None
        self.z: F = None
        self.w: H = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: E = None
        self.o: A = None
        self.t: A = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: H = None
        self.o: E = None
        self.txt = txt

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

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

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