class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: F = None
        self.o: G = None
        self.t: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: F = None
        self.u: B = None
        self.q: D = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: B = None
        self.z: E = None
        self.o: C = None
        self.x: D = None
        self.u: F = None
        self.txt = txt

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

b = A("b")
h = B("h")
l = C("l")
c = D("c")
i = E("i")
e = F("e")
j = G("j")
d = F("d")
k = A("k")

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

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

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: F = None
        self.u: B = None
        self.q: D = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: B = None
        self.z: E = None
        self.o: C = None
        self.x: D = None
        self.u: F = None
        self.txt = txt

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

b = A("b")
h = B("h")
l = C("l")
c = D("c")
i = E("i")
e = F("e")
j = G("j")
d = F("d")
k = A("k")

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