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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: A = None
        self.v: A = None
        self.o: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

g = A("g")
m = B("m")
b = C("b")
a = D("a")
d = E("d")
e = F("e")
h = G("h")
l = G("l")
n = B("n")

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: A = None
        self.v: A = None
        self.o: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

g = A("g")
m = B("m")
b = C("b")
a = D("a")
d = E("d")
e = F("e")
h = G("h")
l = G("l")
n = B("n")

g.t = e
g.s = l
g.u = n
g.o = a
g.w = d
g.x = b
m.u = e
m.o = l
m.q = n
m.y = g
m.s = g
m.r = d
m.v = d
b.y = a
b.w = g
b.v = g
b.o = l
a.r = e
a.z = e
a.y = l
a.o = h
d.q = h
e.w = g
h.z = g
h.x = g
h.w = g
h.s = e
h.r = m
h.q = m
h.u = b
l.z = g
l.x = g
l.w = g
l.s = e
l.r = n
l.q = m
l.u = b
n.u = e
n.o = l
n.q = m
n.y = g
n.s = g
n.r = d
n.v = d
assert n.q.o.u.txt == "b"