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

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

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

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

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

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

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

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

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

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

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

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

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

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

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