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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: F = None
        self.r: C = None
        self.o: B = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: G = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: A = None
        self.u: B = None
        self.q: C = None
        self.o: B = None
        self.z: F = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: F = None
        self.r: C = None
        self.o: B = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: G = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: A = None
        self.u: B = None
        self.q: C = None
        self.o: B = None
        self.z: F = None
        self.txt = txt

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

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