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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: G = None
        self.s: C = None
        self.w: H = None
        self.o: G = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: A = None
        self.v: E = None
        self.s: A = None
        self.u: E = None
        self.t: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: G = None
        self.s: C = None
        self.w: H = None
        self.o: G = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: A = None
        self.v: E = None
        self.s: A = None
        self.u: E = None
        self.t: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: A = None
        self.txt = txt

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

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