class A:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: F = None
        self.o: D = None
        self.p: F = None
        self.q: E = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: B = None
        self.t: G = None
        self.x: A = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: G = None
        self.r: F = None
        self.p: G = None
        self.o: F = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.w: G = None
        self.x: G = None
        self.o: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: F = None
        self.o: D = None
        self.p: F = None
        self.q: E = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: B = None
        self.t: G = None
        self.x: A = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: G = None
        self.r: F = None
        self.p: G = None
        self.o: F = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.w: G = None
        self.x: G = None
        self.o: D = None
        self.txt = txt

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

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

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