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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: D = None
        self.r: A = None
        self.z: B = None
        self.x: B = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: I = None
        self.q: E = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: B = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: H = None
        self.x: C = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: F = None
        self.p: B = None
        self.o: F = None
        self.q: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: C = None
        self.r: F = None
        self.p: J = None
        self.z: G = None
        self.txt = txt

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

j = A("j")
n = B("n")
k = C("k")
m = D("m")
b = E("b")
h = F("h")
f = G("f")
a = H("a")
e = I("e")
g = J("g")

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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: D = None
        self.r: A = None
        self.z: B = None
        self.x: B = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: I = None
        self.q: E = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: B = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: H = None
        self.x: C = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: F = None
        self.p: B = None
        self.o: F = None
        self.q: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: C = None
        self.r: F = None
        self.p: J = None
        self.z: G = None
        self.txt = txt

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

j = A("j")
n = B("n")
k = C("k")
m = D("m")
b = E("b")
h = F("h")
f = G("f")
a = H("a")
e = I("e")
g = J("g")

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