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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: D = None
        self.z: G = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: G = None
        self.q: C = None
        self.o: F = None
        self.v: G = None
        self.y: I = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: F = None
        self.z: I = None
        self.x: D = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: E = None
        self.o: G = None
        self.w: B = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: D = None
        self.y: D = None
        self.w: H = None
        self.r: A = None
        self.u: G = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: D = None
        self.p: C = None
        self.z: C = None
        self.t: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: D = None
        self.z: G = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: G = None
        self.q: C = None
        self.o: F = None
        self.v: G = None
        self.y: I = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: F = None
        self.z: I = None
        self.x: D = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: E = None
        self.o: G = None
        self.w: B = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: D = None
        self.y: D = None
        self.w: H = None
        self.r: A = None
        self.u: G = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: D = None
        self.p: C = None
        self.z: C = None
        self.t: A = None
        self.txt = txt

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

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