class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: E = None
        self.x: G = None
        self.q: C = None
        self.t: D = None
        self.p: G = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: D = None
        self.v: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: E = None
        self.u: B = None
        self.x: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: B = None
        self.y: B = None
        self.txt = txt

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

k = A("k")
h = B("h")
d = C("d")
c = D("c")
f = E("f")
l = F("l")
m = G("m")
e = C("e")
a = E("a")

k.w = f
k.o = f
k.x = m
k.p = m
k.q = e
k.t = c
k.r = d
h.s = l
h.p = c
h.v = m
d.r = e
d.q = a
d.z = h
d.x = c
d.t = k
d.s = k
d.u = f
c.z = l
c.s = a
c.x = a
c.u = h
f.v = a
f.q = a
l.w = k
l.x = h
l.y = h
m.u = e
m.y = h
m.q = a
e.r = d
e.q = f
e.z = h
e.x = c
e.t = k
e.s = k
e.u = a
a.v = f
a.q = f
assert k.t.x.v.v.q.v.v.v.txt == "
class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: E = None
        self.x: G = None
        self.q: C = None
        self.t: D = None
        self.p: G = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: D = None
        self.v: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: E = None
        self.u: B = None
        self.x: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: B = None
        self.y: B = None
        self.txt = txt

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

k = A("k")
h = B("h")
d = C("d")
c = D("c")
f = E("f")
l = F("l")
m = G("m")
e = C("e")
a = E("a")

k.w = f
k.o = f
k.x = m
k.p = m
k.q = e
k.t = c
k.r = d
h.s = l
h.p = c
h.v = m
d.r = e
d.q = a
d.z = h
d.x = c
d.t = k
d.s = k
d.u = f
c.z = l
c.s = a
c.x = a
c.u = h
f.v = a
f.q = a
l.w = k
l.x = h
l.y = h
m.u = e
m.y = h
m.q = a
e.r = d
e.q = f
e.z = h
e.x = c
e.t = k
e.s = k
e.u = a
a.v = f
a.q = f
assert k.t.x.v.v.q.v.v.v.txt == "a"