class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: A = None
        self.v: E = None
        self.s: I = None
        self.q: F = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: J = None
        self.s: B = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.o: C = None
        self.z: G = None
        self.r: E = None
        self.x: F = None
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: I = None
        self.p: H = None
        self.txt = txt

c = A("c")
g = B("g")
m = C("m")
i = D("i")
f = E("f")
e = F("e")
l = G("l")
b = H("b")
n = I("n")
h = J("h")

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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: A = None
        self.v: E = None
        self.s: I = None
        self.q: F = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: J = None
        self.s: B = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.o: C = None
        self.z: G = None
        self.r: E = None
        self.x: F = None
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: I = None
        self.p: H = None
        self.txt = txt

c = A("c")
g = B("g")
m = C("m")
i = D("i")
f = E("f")
e = F("e")
l = G("l")
b = H("b")
n = I("n")
h = J("h")

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