class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.r: E = None
        self.w: F = None
        self.u: D = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: E = None
        self.u: C = None
        self.w: A = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: A = None
        self.txt = txt

k = A("k")
b = B("b")
h = C("h")
c = D("c")
j = E("j")
e = F("e")
n = G("n")
m = G("m")
i = E("i")
a = D("a")

k.t = j
k.o = h
k.r = i
k.w = e
k.u = a
k.v = a
b.z = n
b.o = i
b.u = h
b.w = k
h.z = e
h.o = e
c.w = h
c.q = e
c.z = e
j.w = b
j.v = m
j.p = h
j.q = k
j.r = e
e.t = h
e.x = h
e.u = m
e.q = c
e.o = j
e.v = i
e.p = n
n.u = b
n.z = k
m.u = b
m.z = k
i.w = b
i.v = n
i.p = h
i.q = k
i.r = e
a.w = h
a.q = e
a.z = e
assert a.q.o.v.u.u.z.p.z.t.q.txt == "
class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.r: E = None
        self.w: F = None
        self.u: D = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: E = None
        self.u: C = None
        self.w: A = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: A = None
        self.txt = txt

k = A("k")
b = B("b")
h = C("h")
c = D("c")
j = E("j")
e = F("e")
n = G("n")
m = G("m")
i = E("i")
a = D("a")

k.t = j
k.o = h
k.r = i
k.w = e
k.u = a
k.v = a
b.z = n
b.o = i
b.u = h
b.w = k
h.z = e
h.o = e
c.w = h
c.q = e
c.z = e
j.w = b
j.v = m
j.p = h
j.q = k
j.r = e
e.t = h
e.x = h
e.u = m
e.q = c
e.o = j
e.v = i
e.p = n
n.u = b
n.z = k
m.u = b
m.z = k
i.w = b
i.v = n
i.p = h
i.q = k
i.r = e
a.w = h
a.q = e
a.z = e
assert a.q.o.v.u.u.z.p.z.t.q.txt == "k"