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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: F = None
        self.o: D = None
        self.y: F = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: C = None
        self.w: G = None
        self.q: E = None
        self.s: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: A = None
        self.q: C = None
        self.p: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: F = None
        self.o: D = None
        self.y: F = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: C = None
        self.w: G = None
        self.q: E = None
        self.s: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: A = None
        self.q: C = None
        self.p: G = None
        self.txt = txt

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

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