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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: G = None
        self.w: D = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: G = None
        self.t: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: G = None
        self.w: D = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: G = None
        self.t: G = None
        self.txt = txt

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

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

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

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

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

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