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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: G = None
        self.x: G = None
        self.w: D = None
        self.v: I = None
        self.z: G = None
        self.p: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: J = None
        self.x: I = None
        self.r: C = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: G = None
        self.x: G = None
        self.w: D = None
        self.v: I = None
        self.z: G = None
        self.p: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: J = None
        self.x: I = None
        self.r: C = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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