class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: J = None
        self.y: C = None
        self.w: F = None
        self.q: E = None
        self.u: G = None
        self.v: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: J = None
        self.y: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: G = None
        self.t: C = None
        self.z: A = None
        self.w: A = None
        self.o: A = None
        self.y: I = None
        self.r: D = None
        self.p: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: J = None
        self.y: C = None
        self.w: F = None
        self.q: E = None
        self.u: G = None
        self.v: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: J = None
        self.y: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: G = None
        self.t: C = None
        self.z: A = None
        self.w: A = None
        self.o: A = None
        self.y: I = None
        self.r: D = None
        self.p: A = None
        self.txt = txt

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

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