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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: E = None
        self.x: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: C = None
        self.z: E = None
        self.q: G = None
        self.w: G = None
        self.txt = txt

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

k = A("k")
e = B("e")
d = C("d")
h = D("h")
j = E("j")
i = F("i")
b = G("b")
l = F("l")

k.y = j
e.q = j
e.y = j
d.u = e
d.q = j
d.x = l
h.w = j
h.t = j
h.x = j
h.s = b
h.v = i
h.p = k
j.s = b
j.q = l
j.p = e
j.r = e
j.z = k
j.w = d
j.x = h
i.r = k
i.p = d
i.z = j
i.q = b
i.w = b
b.y = j
l.r = k
l.p = d
l.z = j
l.q = b
l.w = b
assert e.q.w.u.y.s.y.q.txt == "
class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: E = None
        self.x: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: C = None
        self.z: E = None
        self.q: G = None
        self.w: G = None
        self.txt = txt

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

k = A("k")
e = B("e")
d = C("d")
h = D("h")
j = E("j")
i = F("i")
b = G("b")
l = F("l")

k.y = j
e.q = j
e.y = j
d.u = e
d.q = j
d.x = l
h.w = j
h.t = j
h.x = j
h.s = b
h.v = i
h.p = k
j.s = b
j.q = l
j.p = e
j.r = e
j.z = k
j.w = d
j.x = h
i.r = k
i.p = d
i.z = j
i.q = b
i.w = b
b.y = j
l.r = k
l.p = d
l.z = j
l.q = b
l.w = b
assert e.q.w.u.y.s.y.q.txt == "l"