class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: D = None
        self.x: D = None
        self.txt = txt

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

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

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

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

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

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

m = A("m")
h = B("h")
a = C("a")
g = D("g")
b = E("b")
e = F("e")
i = G("i")
l = D("l")
n = E("n")
d = F("d")

m.o = d
m.s = l
m.x = g
h.z = i
h.w = d
h.r = l
h.y = m
h.s = m
h.v = e
a.x = b
a.p = i
a.v = i
a.s = i
a.w = d
a.z = g
a.y = g
g.w = a
g.t = a
g.y = l
g.x = h
g.z = h
g.s = m
b.s = n
e.t = a
i.q = m
i.t = m
i.w = m
i.x = h
i.z = d
i.r = g
l.w = a
l.t = a
l.y = g
l.x = h
l.z = h
l.s = m
n.s = b
d.t = a
assert g.s.s.y.x.w.t.txt == "
class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: D = None
        self.x: D = None
        self.txt = txt

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

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

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

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

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

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

m = A("m")
h = B("h")
a = C("a")
g = D("g")
b = E("b")
e = F("e")
i = G("i")
l = D("l")
n = E("n")
d = F("d")

m.o = d
m.s = l
m.x = g
h.z = i
h.w = d
h.r = l
h.y = m
h.s = m
h.v = e
a.x = b
a.p = i
a.v = i
a.s = i
a.w = d
a.z = g
a.y = g
g.w = a
g.t = a
g.y = l
g.x = h
g.z = h
g.s = m
b.s = n
e.t = a
i.q = m
i.t = m
i.w = m
i.x = h
i.z = d
i.r = g
l.w = a
l.t = a
l.y = g
l.x = h
l.z = h
l.s = m
n.s = b
d.t = a
assert g.s.s.y.x.w.t.txt == "a"