class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: J = None
        self.s: F = None
        self.z: F = None
        self.p: H = None
        self.r: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: H = None
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: F = None
        self.u: A = None
        self.x: A = None
        self.r: D = None
        self.p: C = None
        self.q: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: H = None
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: F = None
        self.u: A = None
        self.x: A = None
        self.r: D = None
        self.p: C = None
        self.q: B = None
        self.txt = txt

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

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

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