class A:
    def __init__(self, txt: str):
        self.r: J = None
        self.p: C = None
        self.o: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: I = None
        self.v: I = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: J = None
        self.o: I = None
        self.r: D = None
        self.z: I = None
        self.v: J = None
        self.x: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: I = None
        self.v: I = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: J = None
        self.o: I = None
        self.r: D = None
        self.z: I = None
        self.v: J = None
        self.x: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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