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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: A = None
        self.x: A = None
        self.q: B = None
        self.o: B = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: C = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: C = None
        self.txt = txt

f = A("f")
l = B("l")
m = C("m")
b = D("b")
a = E("a")
k = F("k")
d = G("d")
j = B("j")
e = A("e")
c = C("c")

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: A = None
        self.x: A = None
        self.q: B = None
        self.o: B = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: C = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: C = None
        self.txt = txt

f = A("f")
l = B("l")
m = C("m")
b = D("b")
a = E("a")
k = F("k")
d = G("d")
j = B("j")
e = A("e")
c = C("c")

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