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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: H = None
        self.t: C = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: F = None
        self.t: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: I = None
        self.o: G = None
        self.t: I = None
        self.z: F = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: E = None
        self.r: D = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: H = None
        self.t: C = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: F = None
        self.t: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: I = None
        self.o: G = None
        self.t: I = None
        self.z: F = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: E = None
        self.r: D = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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