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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: E = 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.u: G = None
        self.s: F = None
        self.y: F = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: E = 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.u: G = None
        self.s: F = None
        self.y: F = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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