class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: D = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: B = None
        self.v: A = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: C = None
        self.p: A = None
        self.s: E = None
        self.r: F = None
        self.x: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

c = A("c")
l = B("l")
a = C("a")
i = D("i")
g = E("g")
n = F("n")
h = G("h")
e = B("e")
f = F("f")
m = D("m")

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: B = None
        self.v: A = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: C = None
        self.p: A = None
        self.s: E = None
        self.r: F = None
        self.x: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

c = A("c")
l = B("l")
a = C("a")
i = D("i")
g = E("g")
n = F("n")
h = G("h")
e = B("e")
f = F("f")
m = D("m")

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