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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: C = None
        self.x: G = None
        self.u: D = None
        self.v: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: E = None
        self.x: A = None
        self.z: B = None
        self.q: G = None
        self.u: A = None
        self.txt = txt

l = A("l")
f = B("f")
e = C("e")
b = D("b")
i = E("i")
a = F("a")
j = G("j")
h = G("h")

l.s = h
l.p = f
l.u = f
l.q = b
l.w = j
l.y = a
f.z = l
f.y = e
f.x = h
f.u = b
f.v = i
e.s = h
e.u = h
e.q = f
e.v = f
e.w = a
e.r = l
e.x = l
b.s = h
b.o = h
b.y = f
i.s = b
i.q = a
i.r = f
i.v = e
a.o = f
j.y = e
j.r = i
j.x = l
j.u = l
j.z = f
j.q = h
h.y = e
h.r = i
h.x = l
h.u = l
h.z = f
h.q = j
assert a.o.z.s.y.txt == "
class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: B = None
        self.q: D = None
        self.w: G = None
        self.y: F = None
        self.u: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: C = None
        self.x: G = None
        self.u: D = None
        self.v: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: E = None
        self.x: A = None
        self.z: B = None
        self.q: G = None
        self.u: A = None
        self.txt = txt

l = A("l")
f = B("f")
e = C("e")
b = D("b")
i = E("i")
a = F("a")
j = G("j")
h = G("h")

l.s = h
l.p = f
l.u = f
l.q = b
l.w = j
l.y = a
f.z = l
f.y = e
f.x = h
f.u = b
f.v = i
e.s = h
e.u = h
e.q = f
e.v = f
e.w = a
e.r = l
e.x = l
b.s = h
b.o = h
b.y = f
i.s = b
i.q = a
i.r = f
i.v = e
a.o = f
j.y = e
j.r = i
j.x = l
j.u = l
j.z = f
j.q = h
h.y = e
h.r = i
h.x = l
h.u = l
h.z = f
h.q = j
assert a.o.z.s.y.txt == "e"