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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: F = None
        self.z: H = None
        self.y: G = None
        self.v: D = None
        self.p: F = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: F = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: B = None
        self.v: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: H = None
        self.y: F = None
        self.o: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: F = None
        self.z: H = None
        self.y: G = None
        self.v: D = None
        self.p: F = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: F = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: B = None
        self.v: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: H = None
        self.y: F = None
        self.o: F = None
        self.txt = txt

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

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