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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: G = None
        self.r: A = None
        self.o: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: H = None
        self.u: I = None
        self.x: A = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: D = None
        self.o: A = None
        self.v: G = None
        self.q: B = None
        self.u: H = None
        self.y: E = None
        self.r: G = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: D = None
        self.o: J = None
        self.w: B = None
        self.t: J = None
        self.s: C = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: C = None
        self.v: G = None
        self.y: F = None
        self.r: B = None
        self.q: B = None
        self.o: A = None
        self.t: F = None
        self.p: G = None
        self.w: F = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: G = None
        self.r: A = None
        self.o: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: H = None
        self.u: I = None
        self.x: A = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: D = None
        self.o: A = None
        self.v: G = None
        self.q: B = None
        self.u: H = None
        self.y: E = None
        self.r: G = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: D = None
        self.o: J = None
        self.w: B = None
        self.t: J = None
        self.s: C = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: C = None
        self.v: G = None
        self.y: F = None
        self.r: B = None
        self.q: B = None
        self.o: A = None
        self.t: F = None
        self.p: G = None
        self.w: F = None
        self.txt = txt

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

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

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

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