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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: I = None
        self.p: D = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: C = None
        self.s: A = None
        self.o: I = None
        self.z: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: I = None
        self.u: B = None
        self.s: E = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: D = None
        self.v: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: D = None
        self.u: J = None
        self.x: H = None
        self.r: G = None
        self.w: A = None
        self.o: D = None
        self.v: B = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: F = None
        self.t: B = None
        self.r: H = None
        self.o: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: I = None
        self.p: D = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: C = None
        self.s: A = None
        self.o: I = None
        self.z: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: I = None
        self.u: B = None
        self.s: E = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: D = None
        self.v: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: D = None
        self.u: J = None
        self.x: H = None
        self.r: G = None
        self.w: A = None
        self.o: D = None
        self.v: B = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: F = None
        self.t: B = None
        self.r: H = None
        self.o: H = None
        self.txt = txt

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

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