class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: G = None
        self.s: C = None
        self.x: H = None
        self.u: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: C = None
        self.u: C = None
        self.x: G = None
        self.o: E = None
        self.r: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: D = None
        self.x: E = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: B = None
        self.x: D = None
        self.v: A = None
        self.r: J = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: C = None
        self.u: C = None
        self.x: G = None
        self.o: E = None
        self.r: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: D = None
        self.x: E = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: B = None
        self.x: D = None
        self.v: A = None
        self.r: J = None
        self.txt = txt

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

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

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

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