class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: C = None
        self.p: C = None
        self.y: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: G = None
        self.t: F = None
        self.q: H = None
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: G = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: G = None
        self.u: C = None
        self.w: C = None
        self.o: F = None
        self.q: C = None
        self.s: H = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: C = None
        self.r: A = None
        self.u: H = None
        self.q: C = None
        self.p: E = None
        self.s: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: G = None
        self.t: F = None
        self.q: H = None
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: G = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: G = None
        self.u: C = None
        self.w: C = None
        self.o: F = None
        self.q: C = None
        self.s: H = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: C = None
        self.r: A = None
        self.u: H = None
        self.q: C = None
        self.p: E = None
        self.s: A = None
        self.txt = txt

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

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

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