class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: C = None
        self.t: E = None
        self.r: G = None
        self.q: C = None
        self.w: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: E = None
        self.q: G = None
        self.s: G = None
        self.y: G = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: E = None
        self.q: G = None
        self.s: G = None
        self.y: G = None
        self.u: E = None
        self.txt = txt

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

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

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