class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: D = None
        self.x: B = None
        self.v: J = None
        self.o: F = None
        self.p: C = None
        self.s: J = None
        self.r: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: J = None
        self.t: D = None
        self.v: J = None
        self.p: B = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: C = None
        self.q: E = None
        self.p: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: E = None
        self.r: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: F = None
        self.r: G = None
        self.v: C = None
        self.q: B = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: J = None
        self.t: D = None
        self.v: J = None
        self.p: B = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: C = None
        self.q: E = None
        self.p: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: E = None
        self.r: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: F = None
        self.r: G = None
        self.v: C = None
        self.q: B = None
        self.s: B = None
        self.txt = txt

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

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

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

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