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

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: B = None
        self.y: G = None
        self.o: B = None
        self.z: F = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: D = None
        self.o: G = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: B = None
        self.y: G = None
        self.o: B = None
        self.z: F = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: D = None
        self.o: G = None
        self.v: G = None
        self.txt = txt

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

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

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

g.v = f
g.z = l
g.w = l
g.s = d
g.r = m
a.o = m
h.r = m
l.t = h
l.p = a
l.o = a
l.y = b
l.z = d
l.s = j
m.y = a
m.s = l
m.o = b
m.v = b
j.s = b
j.p = h
j.u = m
j.x = g
j.v = l
b.z = d
b.w = a
n.y = a
n.s = l
n.o = b
n.v = b
d.s = b
d.p = h
d.u = m
d.x = g
d.v = f
f.t = h
f.p = a
f.o = a
f.y = b
f.z = j
f.s = d
assert l.s.s.z.u.y.o.txt == "m"