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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: E = None
        self.u: F = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: G = None
        self.r: G = None
        self.s: F = None
        self.v: H = None
        self.o: C = None
        self.y: F = None
        self.z: G = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: A = None
        self.z: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: B = None
        self.p: C = None
        self.t: G = None
        self.q: C = None
        self.x: C = None
        self.r: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: E = None
        self.u: F = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: G = None
        self.r: G = None
        self.s: F = None
        self.v: H = None
        self.o: C = None
        self.y: F = None
        self.z: G = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: A = None
        self.z: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: B = None
        self.p: C = None
        self.t: G = None
        self.q: C = None
        self.x: C = None
        self.r: E = None
        self.txt = txt

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

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