class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: G = None
        self.v: B = None
        self.w: E = None
        self.o: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: C = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: C = None
        self.x: A = None
        self.txt = txt

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

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