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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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

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