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

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

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: I = None
        self.r: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: B = None
        self.s: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: I = None
        self.s: G = None
        self.p: F = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: C = None
        self.t: E = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: I = None
        self.r: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: B = None
        self.s: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: I = None
        self.s: G = None
        self.p: F = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: C = None
        self.t: E = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: A = None
        self.txt = txt

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

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