class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: J = None
        self.x: E = None
        self.o: E = None
        self.w: B = None
        self.p: F = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: J = None
        self.u: B = None
        self.s: I = None
        self.w: H = None
        self.o: C = None
        self.z: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: D = None
        self.s: D = None
        self.w: C = None
        self.r: C = None
        self.o: I = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: J = None
        self.x: E = None
        self.o: E = None
        self.w: B = None
        self.p: F = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: J = None
        self.u: B = None
        self.s: I = None
        self.w: H = None
        self.o: C = None
        self.z: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: D = None
        self.s: D = None
        self.w: C = None
        self.r: C = None
        self.o: I = None
        self.txt = txt

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

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

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

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