class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: C = None
        self.v: C = None
        self.x: C = None
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: I = None
        self.y: H = None
        self.q: F = None
        self.p: J = None
        self.x: I = None
        self.w: F = None
        self.o: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: F = None
        self.z: I = None
        self.r: H = None
        self.q: H = None
        self.s: H = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: I = None
        self.t: D = None
        self.z: G = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: I = None
        self.y: H = None
        self.o: H = None
        self.q: I = None
        self.t: C = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: G = None
        self.u: A = None
        self.w: A = None
        self.y: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: I = None
        self.y: H = None
        self.q: F = None
        self.p: J = None
        self.x: I = None
        self.w: F = None
        self.o: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: F = None
        self.z: I = None
        self.r: H = None
        self.q: H = None
        self.s: H = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: I = None
        self.t: D = None
        self.z: G = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: I = None
        self.y: H = None
        self.o: H = None
        self.q: I = None
        self.t: C = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: G = None
        self.u: A = None
        self.w: A = None
        self.y: I = None
        self.txt = txt

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

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