class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: C = None
        self.y: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: D = None
        self.z: F = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: D = None
        self.r: C = None
        self.x: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: C = None
        self.y: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: D = None
        self.z: F = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: D = None
        self.r: C = None
        self.x: E = None
        self.txt = txt

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

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