class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: D = None
        self.w: H = None
        self.t: I = None
        self.o: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: E = None
        self.u: A = None
        self.t: I = None
        self.y: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: G = None
        self.q: G = None
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: I = None
        self.q: H = None
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: D = None
        self.z: C = None
        self.v: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: E = None
        self.u: A = None
        self.t: I = None
        self.y: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: G = None
        self.q: G = None
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: I = None
        self.q: H = None
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: D = None
        self.z: C = None
        self.v: G = None
        self.txt = txt

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

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

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