class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: E = None
        self.w: I = None
        self.y: C = None
        self.u: H = None
        self.s: E = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: D = None
        self.p: D = None
        self.w: D = None
        self.y: A = None
        self.r: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: H = None
        self.y: A = None
        self.r: I = None
        self.o: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: D = None
        self.p: D = None
        self.w: D = None
        self.y: A = None
        self.r: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: H = None
        self.y: A = None
        self.r: I = None
        self.o: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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