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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: I = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: F = None
        self.t: E = None
        self.p: G = None
        self.u: F = None
        self.z: F = None
        self.x: H = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: I = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: F = None
        self.t: E = None
        self.p: G = None
        self.u: F = None
        self.z: F = None
        self.x: H = None
        self.y: F = None
        self.txt = txt

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

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

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