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

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

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: G = None
        self.s: A = None
        self.y: C = None
        self.t: D = None
        self.r: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: C = None
        self.txt = txt

h = A("h")
i = B("i")
b = C("b")
g = D("g")
j = E("j")
a = F("a")
d = G("d")
e = D("e")
n = F("n")
l = B("l")

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: G = None
        self.s: A = None
        self.y: C = None
        self.t: D = None
        self.r: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: C = None
        self.txt = txt

h = A("h")
i = B("i")
b = C("b")
g = D("g")
j = E("j")
a = F("a")
d = G("d")
e = D("e")
n = F("n")
l = B("l")

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