class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: B = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: E = None
        self.z: A = None
        self.v: D = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: F = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: E = None
        self.z: A = None
        self.v: D = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: F = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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