class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: D = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: A = None
        self.z: F = None
        self.u: B = None
        self.v: A = None
        self.x: A = None
        self.t: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: C = None
        self.y: G = None
        self.r: E = None
        self.w: C = None
        self.txt = txt

g = A("g")
i = B("i")
k = C("k")
a = D("a")
j = E("j")
m = F("m")
l = G("l")
d = H("d")
n = I("n")

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: A = None
        self.z: F = None
        self.u: B = None
        self.v: A = None
        self.x: A = None
        self.t: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: C = None
        self.y: G = None
        self.r: E = None
        self.w: C = None
        self.txt = txt

g = A("g")
i = B("i")
k = C("k")
a = D("a")
j = E("j")
m = F("m")
l = G("l")
d = H("d")
n = I("n")

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