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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: C = None
        self.q: F = None
        self.u: B = None
        self.s: H = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: D = None
        self.y: G = None
        self.s: C = None
        self.o: C = None
        self.p: B = None
        self.z: H = None
        self.q: C = None
        self.w: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: C = None
        self.s: B = None
        self.q: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: E = None
        self.s: F = None
        self.w: H = None
        self.x: G = None
        self.t: G = None
        self.p: H = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: C = None
        self.q: F = None
        self.u: B = None
        self.s: H = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: D = None
        self.y: G = None
        self.s: C = None
        self.o: C = None
        self.p: B = None
        self.z: H = None
        self.q: C = None
        self.w: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: C = None
        self.s: B = None
        self.q: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: E = None
        self.s: F = None
        self.w: H = None
        self.x: G = None
        self.t: G = None
        self.p: H = None
        self.r: H = None
        self.txt = txt

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

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