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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: A = None
        self.x: G = None
        self.r: G = None
        self.u: H = None
        self.t: F = None
        self.z: D = None
        self.y: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: G = None
        self.u: H = None
        self.w: E = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: B = None
        self.x: F = None
        self.u: H = None
        self.w: G = None
        self.y: D = None
        self.z: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: F = None
        self.y: D = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: A = None
        self.x: G = None
        self.r: G = None
        self.u: H = None
        self.t: F = None
        self.z: D = None
        self.y: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: G = None
        self.u: H = None
        self.w: E = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: B = None
        self.x: F = None
        self.u: H = None
        self.w: G = None
        self.y: D = None
        self.z: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: F = None
        self.y: D = None
        self.q: D = None
        self.txt = txt

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

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