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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.q: D = None
        self.p: G = None
        self.y: A = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: F = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: C = None
        self.v: E = None
        self.u: C = None
        self.y: A = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: A = None
        self.txt = txt

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

j.s = n
j.x = g
e.v = g
e.q = d
e.p = n
e.y = j
e.t = b
l.z = n
l.o = g
l.w = g
l.r = g
l.p = e
d.z = j
d.x = b
d.w = b
g.r = n
g.w = d
g.v = d
g.x = e
g.p = l
b.q = n
b.p = n
b.w = l
b.u = l
b.v = g
b.y = j
n.t = l
n.z = j
i.z = j
i.x = b
i.w = b
assert l.z.z.x.x.txt == "
class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.q: D = None
        self.p: G = None
        self.y: A = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: F = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: C = None
        self.v: E = None
        self.u: C = None
        self.y: A = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: A = None
        self.txt = txt

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

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