class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: F = None
        self.r: F = None
        self.u: E = None
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: E = None
        self.p: B = None
        self.y: D = None
        self.t: E = None
        self.w: C = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: F = None
        self.t: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: B = None
        self.r: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: E = None
        self.p: B = None
        self.y: D = None
        self.t: E = None
        self.w: C = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: F = None
        self.t: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: B = None
        self.r: B = None
        self.txt = txt

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

b.v = e
b.y = e
b.r = e
b.u = k
b.w = f
g.z = k
g.v = k
g.t = k
g.p = m
g.y = f
g.w = c
g.r = j
c.q = g
c.v = e
c.t = j
f.t = c
f.w = c
f.r = k
f.z = g
f.u = e
f.q = j
k.t = g
k.o = f
k.z = j
e.r = j
e.u = b
j.q = k
j.w = g
j.r = m
m.z = k
m.v = k
m.t = k
m.p = g
m.y = f
m.w = c
m.r = j
n.v = e
n.y = e
n.r = e
n.u = k
n.w = f
assert n.w.r.o.u.r.q.z.w.txt == "g"