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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: H = None
        self.v: E = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: I = None
        self.z: J = None
        self.x: I = None
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: G = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.r: C = None
        self.o: I = None
        self.s: I = None
        self.w: C = None
        self.q: J = None
        self.y: C = None
        self.p: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: A = None
        self.txt = txt

f = A("f")
d = B("d")
g = C("g")
e = D("e")
l = E("l")
j = F("j")
m = G("m")
i = H("i")
n = I("n")
h = J("h")

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: H = None
        self.v: E = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: I = None
        self.z: J = None
        self.x: I = None
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: G = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.r: C = None
        self.o: I = None
        self.s: I = None
        self.w: C = None
        self.q: J = None
        self.y: C = None
        self.p: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: A = None
        self.txt = txt

f = A("f")
d = B("d")
g = C("g")
e = D("e")
l = E("l")
j = F("j")
m = G("m")
i = H("i")
n = I("n")
h = J("h")

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