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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: C = None
        self.y: C = None
        self.p: A = None
        self.t: F = None
        self.w: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: I = None
        self.s: J = None
        self.q: E = None
        self.z: A = None
        self.p: A = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: A = None
        self.r: J = None
        self.y: E = None
        self.w: A = None
        self.q: B = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: I = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: B = None
        self.w: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: F = None
        self.t: C = None
        self.v: C = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: J = None
        self.t: A = None
        self.r: G = None
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: E = None
        self.q: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: C = None
        self.y: C = None
        self.p: A = None
        self.t: F = None
        self.w: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: I = None
        self.s: J = None
        self.q: E = None
        self.z: A = None
        self.p: A = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: A = None
        self.r: J = None
        self.y: E = None
        self.w: A = None
        self.q: B = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: I = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: B = None
        self.w: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: F = None
        self.t: C = None
        self.v: C = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: J = None
        self.t: A = None
        self.r: G = None
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: E = None
        self.q: A = None
        self.txt = txt

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

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