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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: E = None
        self.r: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: B = None
        self.u: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: D = None
        self.q: A = None
        self.r: F = None
        self.p: D = None
        self.t: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: E = None
        self.r: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: B = None
        self.u: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: D = None
        self.q: A = None
        self.r: F = None
        self.p: D = None
        self.t: D = None
        self.txt = txt

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

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