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

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

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: D = None
        self.q: D = None
        self.y: D = None
        self.v: A = None
        self.p: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: D = None
        self.p: D = None
        self.q: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: D = None
        self.q: D = None
        self.y: D = None
        self.v: A = None
        self.p: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: D = None
        self.p: D = None
        self.q: B = None
        self.txt = txt

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

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