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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.u: D = None
        self.p: J = None
        self.v: J = None
        self.y: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: I = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: H = None
        self.t: J = None
        self.o: G = None
        self.p: B = None
        self.z: G = None
        self.y: J = None
        self.r: J = None
        self.q: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: E = None
        self.s: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.u: D = None
        self.p: J = None
        self.v: J = None
        self.y: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: I = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: H = None
        self.t: J = None
        self.o: G = None
        self.p: B = None
        self.z: G = None
        self.y: J = None
        self.r: J = None
        self.q: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: E = None
        self.s: F = None
        self.txt = txt

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

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