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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: F = None
        self.y: E = None
        self.t: F = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: G = None
        self.p: I = None
        self.t: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: F = None
        self.x: I = None
        self.o: D = None
        self.w: J = None
        self.v: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: A = None
        self.z: J = None
        self.s: H = None
        self.w: A = None
        self.t: J = None
        self.q: G = None
        self.y: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: I = None
        self.txt = txt

c = A("c")
j = B("j")
f = C("f")
e = D("e")
g = E("g")
l = F("l")
m = G("m")
d = H("d")
a = I("a")
i = J("i")

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: F = None
        self.y: E = None
        self.t: F = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: G = None
        self.p: I = None
        self.t: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: F = None
        self.x: I = None
        self.o: D = None
        self.w: J = None
        self.v: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: A = None
        self.z: J = None
        self.s: H = None
        self.w: A = None
        self.t: J = None
        self.q: G = None
        self.y: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: I = None
        self.txt = txt

c = A("c")
j = B("j")
f = C("f")
e = D("e")
g = E("g")
l = F("l")
m = G("m")
d = H("d")
a = I("a")
i = J("i")

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