class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: D = None
        self.q: B = None
        self.p: E = None
        self.u: A = None
        self.w: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: A = None
        self.o: A = None
        self.y: E = None
        self.w: E = None
        self.txt = txt

l = A("l")
g = B("g")
f = C("f")
m = D("m")
j = E("j")
c = F("c")
b = G("b")
i = A("i")

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: A = None
        self.o: A = None
        self.y: E = None
        self.w: E = None
        self.txt = txt

l = A("l")
g = B("g")
f = C("f")
m = D("m")
j = E("j")
c = F("c")
b = G("b")
i = A("i")

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