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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: B = None
        self.v: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: B = None
        self.v: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: A = None
        self.txt = txt

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

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

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