class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: E = None
        self.z: E = None
        self.u: H = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: F = None
        self.w: I = None
        self.v: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: I = None
        self.y: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: F = None
        self.w: I = None
        self.v: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: I = None
        self.y: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: E = None
        self.txt = txt

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

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