class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: I = None
        self.q: H = None
        self.s: H = None
        self.z: J = None
        self.t: C = None
        self.r: I = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: C = None
        self.r: G = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: E = None
        self.o: G = None
        self.r: G = None
        self.y: B = None
        self.s: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: H = None
        self.o: J = None
        self.u: I = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: D = None
        self.x: A = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: A = None
        self.w: E = None
        self.u: E = None
        self.x: J = None
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: F = None
        self.w: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: C = None
        self.r: G = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: E = None
        self.o: G = None
        self.r: G = None
        self.y: B = None
        self.s: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: H = None
        self.o: J = None
        self.u: I = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: D = None
        self.x: A = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: A = None
        self.w: E = None
        self.u: E = None
        self.x: J = None
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: F = None
        self.w: G = None
        self.txt = txt

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

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