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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.o: I = None
        self.q: H = None
        self.z: E = None
        self.y: G = None
        self.s: G = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: E = None
        self.z: B = None
        self.w: D = None
        self.v: B = None
        self.y: C = None
        self.t: D = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: G = None
        self.t: G = None
        self.z: I = None
        self.w: E = None
        self.y: C = None
        self.p: D = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: C = None
        self.y: D = None
        self.o: A = None
        self.z: F = None
        self.txt = txt

h = A("h")
a = B("a")
g = C("g")
l = D("l")
m = E("m")
d = F("d")
e = G("e")
c = H("c")
k = I("k")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.o: I = None
        self.q: H = None
        self.z: E = None
        self.y: G = None
        self.s: G = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: E = None
        self.z: B = None
        self.w: D = None
        self.v: B = None
        self.y: C = None
        self.t: D = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: G = None
        self.t: G = None
        self.z: I = None
        self.w: E = None
        self.y: C = None
        self.p: D = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: C = None
        self.y: D = None
        self.o: A = None
        self.z: F = None
        self.txt = txt

h = A("h")
a = B("a")
g = C("g")
l = D("l")
m = E("m")
d = F("d")
e = G("e")
c = H("c")
k = I("k")

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