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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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