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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: D = None
        self.z: H = None
        self.r: B = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: B = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: D = None
        self.v: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

e = A("e")
b = B("b")
i = C("i")
l = D("l")
h = E("h")
k = F("k")
d = G("d")
m = H("m")
a = I("a")

e.z = l
e.v = k
e.t = k
e.o = k
e.x = d
e.r = h
e.p = h
e.u = a
e.q = i
b.t = h
b.s = k
i.x = l
i.q = l
i.w = l
i.z = m
i.r = b
l.v = b
l.p = b
l.w = k
h.t = m
h.z = m
h.u = b
h.w = b
h.x = k
k.r = e
k.v = e
k.t = l
d.u = i
d.z = b
m.w = d
m.t = d
a.p = b
assert e.p.z.w.u.z.w.z.txt == "
class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: F = None
        self.x: G = None
        self.r: E = None
        self.u: I = None
        self.t: F = None
        self.p: E = None
        self.q: C = None
        self.o: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: D = None
        self.z: H = None
        self.r: B = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: B = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: D = None
        self.v: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

e = A("e")
b = B("b")
i = C("i")
l = D("l")
h = E("h")
k = F("k")
d = G("d")
m = H("m")
a = I("a")

e.z = l
e.v = k
e.t = k
e.o = k
e.x = d
e.r = h
e.p = h
e.u = a
e.q = i
b.t = h
b.s = k
i.x = l
i.q = l
i.w = l
i.z = m
i.r = b
l.v = b
l.p = b
l.w = k
h.t = m
h.z = m
h.u = b
h.w = b
h.x = k
k.r = e
k.v = e
k.t = l
d.u = i
d.z = b
m.w = d
m.t = d
a.p = b
assert e.p.z.w.u.z.w.z.txt == "b"