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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: C = None
        self.v: G = None
        self.u: D = None
        self.x: C = None
        self.r: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: D = None
        self.o: G = None
        self.t: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: C = None
        self.v: G = None
        self.u: D = None
        self.x: C = None
        self.r: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: D = None
        self.o: G = None
        self.t: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

k.q = c
k.u = b
k.s = b
k.t = m
k.x = n
k.v = n
m.y = k
m.w = g
m.v = n
b.s = k
b.p = g
b.x = g
b.r = g
b.v = j
b.u = h
h.w = n
h.o = c
h.p = c
a.s = j
a.o = j
a.r = h
a.t = g
n.q = j
j.r = h
g.s = k
g.p = b
g.x = b
g.r = b
g.v = j
g.u = h
c.s = j
c.o = j
c.r = h
c.t = b
e.q = a
e.u = b
e.s = b
e.t = m
e.x = n
e.v = n
assert a.r.o.t.p.s.t.v.q.txt == "j"