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

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: H = None
        self.o: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: B = None
        self.p: E = None
        self.w: I = None
        self.o: F = None
        self.q: C = None
        self.x: H = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: F = None
        self.v: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: H = None
        self.o: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: B = None
        self.p: E = None
        self.w: I = None
        self.o: F = None
        self.q: C = None
        self.x: H = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: F = None
        self.v: C = None
        self.txt = txt

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

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