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

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: I = None
        self.w: F = None
        self.x: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: G = None
        self.p: D = None
        self.x: B = None
        self.w: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: I = None
        self.w: F = None
        self.x: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: G = None
        self.p: D = None
        self.x: B = None
        self.w: B = None
        self.txt = txt

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

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