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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: I = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: I = None
        self.txt = txt

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

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

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

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