class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: E = None
        self.x: G = None
        self.y: E = None
        self.q: D = None
        self.t: F = None
        self.p: E = None
        self.w: C = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: H = None
        self.y: H = None
        self.q: E = None
        self.p: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: F = None
        self.p: F = None
        self.s: E = None
        self.v: E = None
        self.z: F = None
        self.u: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: H = None
        self.y: H = None
        self.q: E = None
        self.p: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: F = None
        self.p: F = None
        self.s: E = None
        self.v: E = None
        self.z: F = None
        self.u: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: G = None
        self.txt = txt

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

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