class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: D = None
        self.t: D = None
        self.q: D = None
        self.y: D = None
        self.o: F = None
        self.u: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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