class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: E = None
        self.p: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: G = None
        self.y: A = None
        self.x: J = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: B = None
        self.s: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: E = None
        self.z: F = None
        self.p: D = None
        self.u: D = None
        self.y: G = None
        self.o: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: G = None
        self.y: A = None
        self.x: J = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: B = None
        self.s: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: E = None
        self.z: F = None
        self.p: D = None
        self.u: D = None
        self.y: G = None
        self.o: B = None
        self.txt = txt

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

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

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

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