class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: C = None
        self.o: F = None
        self.p: B = None
        self.z: C = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: G = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: C = None
        self.w: B = None
        self.p: B = None
        self.z: I = None
        self.y: J = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: G = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: C = None
        self.w: B = None
        self.p: B = None
        self.z: I = None
        self.y: J = None
        self.txt = txt

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

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

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

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

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