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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: G = None
        self.y: I = None
        self.w: F = None
        self.x: H = None
        self.v: G = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: D = None
        self.y: E = None
        self.v: G = None
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: A = None
        self.x: A = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: I = None
        self.y: A = None
        self.v: B = None
        self.z: I = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: G = None
        self.y: I = None
        self.w: F = None
        self.x: H = None
        self.v: G = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: D = None
        self.y: E = None
        self.v: G = None
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: A = None
        self.x: A = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: I = None
        self.y: A = None
        self.v: B = None
        self.z: I = None
        self.txt = txt

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

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

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

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

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