class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: E = None
        self.p: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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