class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: J = None
        self.z: G = None
        self.x: H = None
        self.v: H = None
        self.t: G = None
        self.s: F = None
        self.u: J = None
        self.y: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: I = None
        self.x: J = None
        self.z: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: E = None
        self.p: B = None
        self.o: E = None
        self.v: I = None
        self.t: B = None
        self.q: H = None
        self.s: J = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: J = None
        self.z: I = None
        self.s: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: E = None
        self.z: F = None
        self.p: G = None
        self.u: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: I = None
        self.x: J = None
        self.z: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: E = None
        self.p: B = None
        self.o: E = None
        self.v: I = None
        self.t: B = None
        self.q: H = None
        self.s: J = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: J = None
        self.z: I = None
        self.s: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: E = None
        self.z: F = None
        self.p: G = None
        self.u: H = None
        self.txt = txt

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

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