class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: J = None
        self.w: D = None
        self.p: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: C = None
        self.u: D = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: C = None
        self.u: D = None
        self.y: G = None
        self.txt = txt

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

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

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