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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: C = None
        self.y: E = None
        self.o: D = None
        self.v: E = None
        self.t: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: B = None
        self.w: D = None
        self.s: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: C = None
        self.y: E = None
        self.o: D = None
        self.v: E = None
        self.t: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: B = None
        self.w: D = None
        self.s: D = None
        self.txt = txt

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

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

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

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