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

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.z: G = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: G = None
        self.o: H = None
        self.p: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: J = None
        self.r: E = None
        self.y: B = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: B = None
        self.txt = txt

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

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

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

a = A("a")
g = B("g")
i = C("i")
d = D("d")
n = E("n")
k = F("k")
f = G("f")
m = H("m")
b = I("b")
h = J("h")

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

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.z: G = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: G = None
        self.o: H = None
        self.p: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: J = None
        self.r: E = None
        self.y: B = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: B = None
        self.txt = txt

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

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

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

a = A("a")
g = B("g")
i = C("i")
d = D("d")
n = E("n")
k = F("k")
f = G("f")
m = H("m")
b = I("b")
h = J("h")

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