class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: E = None
        self.z: E = None
        self.t: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: G = None
        self.r: F = None
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: A = None
        self.v: E = None
        self.y: B = None
        self.u: G = None
        self.q: D = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: E = None
        self.z: E = None
        self.t: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: G = None
        self.r: F = None
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: A = None
        self.v: E = None
        self.y: B = None
        self.u: G = None
        self.q: D = None
        self.s: A = None
        self.txt = txt

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

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

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

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