class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: C = None
        self.w: B = None
        self.y: B = None
        self.t: G = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: G = None
        self.z: B = None
        self.o: G = None
        self.w: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: C = None
        self.x: D = None
        self.t: D = None
        self.txt = txt

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

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

k = A("k")
e = B("e")
j = C("j")
n = D("n")
g = E("g")
a = F("a")
l = G("l")
b = C("b")
m = B("m")

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: G = None
        self.z: B = None
        self.o: G = None
        self.w: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: C = None
        self.x: D = None
        self.t: D = None
        self.txt = txt

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

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

k = A("k")
e = B("e")
j = C("j")
n = D("n")
g = E("g")
a = F("a")
l = G("l")
b = C("b")
m = B("m")

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