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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: H = None
        self.y: G = None
        self.p: A = None
        self.z: E = None
        self.u: D = None
        self.s: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: B = None
        self.z: D = None
        self.y: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: C = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: G = None
        self.y: H = None
        self.x: G = None
        self.q: C = None
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: H = None
        self.y: G = None
        self.p: A = None
        self.z: E = None
        self.u: D = None
        self.s: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: B = None
        self.z: D = None
        self.y: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: C = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: G = None
        self.y: H = None
        self.x: G = None
        self.q: C = None
        self.r: G = None
        self.txt = txt

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

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