class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: F = None
        self.w: F = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: G = None
        self.y: E = None
        self.s: A = None
        self.r: E = None
        self.z: H = None
        self.x: G = None
        self.t: C = None
        self.o: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: A = None
        self.y: H = None
        self.v: D = None
        self.t: H = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: G = None
        self.r: H = None
        self.y: H = None
        self.u: A = None
        self.s: B = None
        self.q: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: F = None
        self.w: F = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: G = None
        self.y: E = None
        self.s: A = None
        self.r: E = None
        self.z: H = None
        self.x: G = None
        self.t: C = None
        self.o: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: A = None
        self.y: H = None
        self.v: D = None
        self.t: H = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: G = None
        self.r: H = None
        self.y: H = None
        self.u: A = None
        self.s: B = None
        self.q: H = None
        self.txt = txt

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

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