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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: A = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: E = None
        self.u: A = None
        self.x: E = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: A = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: E = None
        self.u: A = None
        self.x: E = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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