class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: I = None
        self.v: F = None
        self.r: J = None
        self.p: B = None
        self.s: I = None
        self.q: G = None
        self.o: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: H = None
        self.x: A = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: H = None
        self.p: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: H = None
        self.x: A = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: H = None
        self.p: D = None
        self.txt = txt

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

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