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

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

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: G = None
        self.y: G = None
        self.q: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: C = None
        self.u: I = None
        self.q: G = None
        self.s: G = None
        self.p: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: E = None
        self.z: B = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: G = None
        self.y: G = None
        self.q: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: C = None
        self.u: I = None
        self.q: G = None
        self.s: G = None
        self.p: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: E = None
        self.z: B = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: A = None
        self.txt = txt

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

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