class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: E = None
        self.z: G = None
        self.q: J = None
        self.s: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: E = None
        self.z: G = None
        self.q: J = None
        self.s: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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

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

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

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