class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: A = None
        self.x: A = None
        self.t: F = None
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

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

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

c = A("c")
n = B("n")
j = C("j")
e = D("e")
m = E("m")
a = F("a")
f = E("f")
l = D("l")
g = A("g")

c.w = a
c.t = a
c.s = g
c.x = g
c.q = j
n.v = j
j.y = m
e.v = n
e.o = j
e.w = a
e.q = f
e.s = l
m.w = l
m.s = n
m.x = a
m.p = j
m.z = j
a.s = g
f.w = e
f.s = n
f.x = a
f.p = j
f.z = j
l.v = n
l.o = j
l.w = a
l.q = m
l.s = e
g.w = a
g.t = a
g.s = c
g.x = c
g.q = j
assert f.x.s.s.q.y.w.q.z.y.txt == "
class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: A = None
        self.x: A = None
        self.t: F = None
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

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

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

c = A("c")
n = B("n")
j = C("j")
e = D("e")
m = E("m")
a = F("a")
f = E("f")
l = D("l")
g = A("g")

c.w = a
c.t = a
c.s = g
c.x = g
c.q = j
n.v = j
j.y = m
e.v = n
e.o = j
e.w = a
e.q = f
e.s = l
m.w = l
m.s = n
m.x = a
m.p = j
m.z = j
a.s = g
f.w = e
f.s = n
f.x = a
f.p = j
f.z = j
l.v = n
l.o = j
l.w = a
l.q = m
l.s = e
g.w = a
g.t = a
g.s = c
g.x = c
g.q = j
assert f.x.s.s.q.y.w.q.z.y.txt == "m"