class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: H = None
        self.v: H = None
        self.x: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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