class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: G = None
        self.t: F = None
        self.x: G = None
        self.u: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: H = None
        self.q: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: B = None
        self.t: B = None
        self.w: A = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: H = None
        self.q: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: B = None
        self.t: B = None
        self.w: A = None
        self.txt = txt

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

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

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