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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: H = None
        self.v: F = None
        self.r: D = None
        self.x: A = None
        self.q: B = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: E = None
        self.o: C = None
        self.u: G = None
        self.p: A = None
        self.x: H = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: E = None
        self.y: A = None
        self.txt = txt

n = A("n")
j = B("j")
c = C("c")
k = D("k")
b = E("b")
i = F("i")
f = G("f")
a = H("a")
l = B("l")

n.w = j
n.u = c
n.p = c
n.q = b
n.y = k
j.z = i
j.v = i
j.w = i
j.t = a
j.r = k
j.x = n
j.q = l
j.o = c
c.s = l
k.x = f
k.y = a
b.w = a
b.u = n
b.q = n
b.z = n
b.t = f
b.s = j
b.p = c
i.t = f
i.u = f
i.z = b
i.o = c
i.p = n
i.x = a
i.q = j
f.t = c
f.o = l
f.u = a
a.v = f
a.q = b
a.y = n
l.z = i
l.v = i
l.w = i
l.t = a
l.r = k
l.x = n
l.q = j
l.o = c
assert i.p.q.u.u.s.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: C = None
        self.q: E = None
        self.p: C = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: H = None
        self.v: F = None
        self.r: D = None
        self.x: A = None
        self.q: B = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: E = None
        self.o: C = None
        self.u: G = None
        self.p: A = None
        self.x: H = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: E = None
        self.y: A = None
        self.txt = txt

n = A("n")
j = B("j")
c = C("c")
k = D("k")
b = E("b")
i = F("i")
f = G("f")
a = H("a")
l = B("l")

n.w = j
n.u = c
n.p = c
n.q = b
n.y = k
j.z = i
j.v = i
j.w = i
j.t = a
j.r = k
j.x = n
j.q = l
j.o = c
c.s = l
k.x = f
k.y = a
b.w = a
b.u = n
b.q = n
b.z = n
b.t = f
b.s = j
b.p = c
i.t = f
i.u = f
i.z = b
i.o = c
i.p = n
i.x = a
i.q = j
f.t = c
f.o = l
f.u = a
a.v = f
a.q = b
a.y = n
l.z = i
l.v = i
l.w = i
l.t = a
l.r = k
l.x = n
l.q = j
l.o = c
assert i.p.q.u.u.s.txt == "l"