class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: F = None
        self.x: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: A = None
        self.v: C = None
        self.y: E = None
        self.t: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: D = None
        self.r: C = None
        self.o: A = None
        self.z: D = None
        self.q: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: C = None
        self.w: C = None
        self.t: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: A = None
        self.v: C = None
        self.y: E = None
        self.t: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: D = None
        self.r: C = None
        self.o: A = None
        self.z: D = None
        self.q: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: C = None
        self.w: C = None
        self.t: C = None
        self.txt = txt

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

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

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

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