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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: A = None
        self.p: A = None
        self.q: D = None
        self.r: E = None
        self.w: F = None
        self.txt = txt

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

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

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

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

d = A("d")
f = B("f")
a = C("a")
i = D("i")
g = E("g")
e = F("e")
k = G("k")
j = D("j")
l = B("l")

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: A = None
        self.p: A = None
        self.q: D = None
        self.r: E = None
        self.w: F = None
        self.txt = txt

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

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

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

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

d = A("d")
f = B("f")
a = C("a")
i = D("i")
g = E("g")
e = F("e")
k = G("k")
j = D("j")
l = B("l")

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