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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: D = None
        self.v: F = None
        self.t: D = None
        self.y: F = None
        self.p: E = None
        self.r: H = None
        self.z: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: A = None
        self.p: F = None
        self.s: G = None
        self.y: I = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: B = None
        self.o: A = None
        self.v: A = None
        self.txt = txt

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

c.p = g
c.v = m
c.t = l
c.q = b
c.y = b
c.o = k
c.z = j
c.w = a
c.s = n
l.o = m
l.q = k
l.t = k
l.v = f
l.y = f
l.p = j
l.r = g
l.z = g
n.z = j
n.t = j
n.x = j
n.r = j
n.v = g
n.y = a
n.w = l
n.p = b
k.v = c
k.z = c
k.p = f
k.o = f
k.s = m
k.y = b
j.z = a
f.x = l
f.r = l
f.p = k
f.z = j
f.w = m
f.o = m
f.s = a
f.v = b
f.q = b
m.p = j
m.q = j
m.z = a
m.u = c
g.x = j
g.u = a
g.q = a
g.v = a
g.r = f
g.s = n
g.w = c
g.o = c
b.z = n
b.p = l
b.o = a
b.v = a
a.p = g
a.v = m
a.t = l
a.q = b
a.y = b
a.o = k
a.z = j
a.w = c
a.s = n
assert j.z.w.v.txt == "
class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: G = None
        self.t: B = None
        self.q: I = None
        self.o: D = None
        self.z: E = None
        self.w: A = None
        self.y: I = None
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: D = None
        self.v: F = None
        self.t: D = None
        self.y: F = None
        self.p: E = None
        self.r: H = None
        self.z: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: A = None
        self.p: F = None
        self.s: G = None
        self.y: I = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: B = None
        self.o: A = None
        self.v: A = None
        self.txt = txt

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

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