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

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: G = None
        self.z: G = None
        self.q: B = None
        self.t: D = None
        self.r: F = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: G = None
        self.z: G = None
        self.q: B = None
        self.t: D = None
        self.r: F = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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