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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: E = None
        self.v: E = None
        self.x: E = None
        self.s: F = None
        self.t: B = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: E = None
        self.v: E = None
        self.x: E = None
        self.s: F = None
        self.t: B = None
        self.y: F = None
        self.txt = txt

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

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

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