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

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

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

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

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

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

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

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

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

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

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

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

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

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

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