class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: J = None
        self.v: G = None
        self.z: E = None
        self.r: G = None
        self.x: D = None
        self.p: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.o: A = None
        self.y: F = None
        self.s: H = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: H = None
        self.q: F = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: D = None
        self.x: I = None
        self.o: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: A = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: E = None
        self.q: C = None
        self.z: J = None
        self.x: I = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: C = None
        self.t: C = None
        self.s: J = None
        self.z: G = None
        self.u: E = None
        self.x: C = None
        self.txt = txt

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

b = A("b")
i = B("i")
j = C("j")
m = D("m")
f = E("f")
h = F("h")
a = G("a")
d = H("d")
l = I("l")
k = J("k")

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

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

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.o: A = None
        self.y: F = None
        self.s: H = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: H = None
        self.q: F = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: D = None
        self.x: I = None
        self.o: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: A = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: E = None
        self.q: C = None
        self.z: J = None
        self.x: I = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: C = None
        self.t: C = None
        self.s: J = None
        self.z: G = None
        self.u: E = None
        self.x: C = None
        self.txt = txt

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

b = A("b")
i = B("i")
j = C("j")
m = D("m")
f = E("f")
h = F("h")
a = G("a")
d = H("d")
l = I("l")
k = J("k")

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