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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: E = None
        self.t: G = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: G = None
        self.p: E = None
        self.t: A = None
        self.v: I = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: E = None
        self.y: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: A = None
        self.x: F = None
        self.w: E = None
        self.t: H = None
        self.o: H = None
        self.r: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: H = None
        self.p: G = None
        self.r: A = None
        self.y: H = None
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: E = None
        self.t: G = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: G = None
        self.p: E = None
        self.t: A = None
        self.v: I = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: E = None
        self.y: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: A = None
        self.x: F = None
        self.w: E = None
        self.t: H = None
        self.o: H = None
        self.r: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: H = None
        self.p: G = None
        self.r: A = None
        self.y: H = None
        self.q: G = None
        self.txt = txt

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

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