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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: F = None
        self.v: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: F = None
        self.v: D = None
        self.txt = txt

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

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

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

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