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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: G = None
        self.q: G = None
        self.o: A = None
        self.t: D = None
        self.p: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: E = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: F = None
        self.t: D = None
        self.z: F = None
        self.v: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: G = None
        self.q: G = None
        self.o: A = None
        self.t: D = None
        self.p: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: E = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: F = None
        self.t: D = None
        self.z: F = None
        self.v: D = None
        self.txt = txt

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

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