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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: I = None
        self.t: A = None
        self.q: I = None
        self.s: E = None
        self.p: E = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: F = None
        self.q: G = None
        self.z: A = None
        self.v: H = None
        self.w: E = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: I = None
        self.t: A = None
        self.q: I = None
        self.s: E = None
        self.p: E = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: F = None
        self.q: G = None
        self.z: A = None
        self.v: H = None
        self.w: E = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

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

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