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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: E = None
        self.x: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: B = None
        self.r: C = None
        self.o: D = None
        self.y: B = None
        self.q: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: E = None
        self.x: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: B = None
        self.r: C = None
        self.o: D = None
        self.y: B = None
        self.q: D = None
        self.u: B = None
        self.txt = txt

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

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

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