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

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

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: F = None
        self.r: G = None
        self.v: E = None
        self.txt = txt

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

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

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

h = A("h")
g = B("g")
b = C("b")
k = D("k")
n = E("n")
l = F("l")
c = G("c")
e = C("e")
i = E("i")

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: F = None
        self.r: G = None
        self.v: E = None
        self.txt = txt

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

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

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

h = A("h")
g = B("g")
b = C("b")
k = D("k")
n = E("n")
l = F("l")
c = G("c")
e = C("e")
i = E("i")

h.v = c
h.w = e
h.o = e
h.q = k
h.x = i
h.z = g
h.p = g
g.u = c
g.o = k
g.v = l
g.w = l
g.r = e
g.q = n
g.p = b
b.p = k
b.s = g
b.y = l
b.o = c
b.u = c
b.v = e
k.p = l
k.t = l
k.r = c
k.v = n
n.p = b
n.s = g
n.t = g
n.r = g
n.w = h
n.x = c
n.q = i
l.q = e
l.u = c
c.s = h
c.w = h
c.v = k
e.p = k
e.s = g
e.y = l
e.o = c
e.u = c
e.v = b
i.p = b
i.s = g
i.t = g
i.r = g
i.w = h
i.x = c
i.q = n
assert k.t.q.s.p.v.txt == "e"