class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: H = None
        self.q: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: A = None
        self.r: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: E = None
        self.v: B = None
        self.z: H = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: D = None
        self.s: I = None
        self.y: B = None
        self.u: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: A = None
        self.r: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: E = None
        self.v: B = None
        self.z: H = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: D = None
        self.s: I = None
        self.y: B = None
        self.u: F = None
        self.txt = txt

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

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

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

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