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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: D = None
        self.q: B = None
        self.z: D = None
        self.x: B = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: D = None
        self.q: B = None
        self.z: D = None
        self.x: B = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

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

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