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

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

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: B = None
        self.q: F = None
        self.p: C = None
        self.u: D = None
        self.y: F = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: B = None
        self.q: F = None
        self.p: C = None
        self.u: D = None
        self.y: F = None
        self.t: E = None
        self.txt = txt

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

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