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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: I = None
        self.v: H = None
        self.t: E = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: I = None
        self.v: H = None
        self.t: E = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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