class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: C = None
        self.y: E = None
        self.t: G = None
        self.v: E = None
        self.s: E = None
        self.x: D = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: C = None
        self.r: G = None
        self.u: D = None
        self.y: G = None
        self.v: H = None
        self.x: H = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: F = None
        self.p: F = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: A = None
        self.p: B = None
        self.o: B = None
        self.w: G = None
        self.z: A = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: E = None
        self.x: A = None
        self.p: A = None
        self.t: F = None
        self.u: E = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: C = None
        self.y: E = None
        self.t: G = None
        self.v: E = None
        self.s: E = None
        self.x: D = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: C = None
        self.r: G = None
        self.u: D = None
        self.y: G = None
        self.v: H = None
        self.x: H = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: F = None
        self.p: F = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: A = None
        self.p: B = None
        self.o: B = None
        self.w: G = None
        self.z: A = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: E = None
        self.x: A = None
        self.p: A = None
        self.t: F = None
        self.u: E = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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