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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: A = None
        self.q: E = None
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: F = None
        self.r: C = None
        self.w: G = None
        self.x: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: C = None
        self.q: A = None
        self.w: E = None
        self.s: E = None
        self.v: A = None
        self.x: I = None
        self.u: F = None
        self.t: F = None
        self.o: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: A = None
        self.q: E = None
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: F = None
        self.r: C = None
        self.w: G = None
        self.x: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: C = None
        self.q: A = None
        self.w: E = None
        self.s: E = None
        self.v: A = None
        self.x: I = None
        self.u: F = None
        self.t: F = None
        self.o: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: F = None
        self.txt = txt

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

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