class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: J = None
        self.u: D = None
        self.t: E = None
        self.p: C = None
        self.y: H = None
        self.v: C = None
        self.o: D = None
        self.s: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: G = None
        self.x: E = None
        self.t: A = None
        self.q: G = None
        self.p: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: A = None
        self.y: D = None
        self.r: E = None
        self.u: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: G = None
        self.o: I = None
        self.q: F = None
        self.s: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: G = None
        self.x: E = None
        self.t: A = None
        self.q: G = None
        self.p: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: A = None
        self.y: D = None
        self.r: E = None
        self.u: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: G = None
        self.o: I = None
        self.q: F = None
        self.s: H = None
        self.txt = txt

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

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