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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: D = None
        self.w: I = None
        self.s: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: A = None
        self.z: H = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: A = None
        self.r: I = None
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: H = None
        self.z: C = None
        self.u: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: D = None
        self.w: I = None
        self.s: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: A = None
        self.z: H = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: A = None
        self.r: I = None
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: H = None
        self.z: C = None
        self.u: H = None
        self.txt = txt

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

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

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