class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: D = None
        self.r: G = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: A = None
        self.v: I = None
        self.y: G = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: A = None
        self.v: I = None
        self.y: G = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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