class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: J = None
        self.o: G = None
        self.p: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: D = None
        self.y: C = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: A = None
        self.y: C = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: B = None
        self.u: I = None
        self.w: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: B = None
        self.o: G = None
        self.z: H = None
        self.r: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: D = None
        self.y: C = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: A = None
        self.y: C = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: B = None
        self.u: I = None
        self.w: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: B = None
        self.o: G = None
        self.z: H = None
        self.r: C = None
        self.txt = txt

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

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