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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: B = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: E = None
        self.x: E = None
        self.w: G = None
        self.o: D = None
        self.q: F = None
        self.y: C = None
        self.txt = txt

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

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

i = A("i")
c = B("c")
l = C("l")
d = D("d")
g = E("g")
k = F("k")
j = G("j")
m = B("m")
a = E("a")

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: B = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: E = None
        self.x: E = None
        self.w: G = None
        self.o: D = None
        self.q: F = None
        self.y: C = None
        self.txt = txt

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

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

i = A("i")
c = B("c")
l = C("l")
d = D("d")
g = E("g")
k = F("k")
j = G("j")
m = B("m")
a = E("a")

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