class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: I = None
        self.x: I = None
        self.o: B = None
        self.p: A = None
        self.t: A = None
        self.v: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: B = None
        self.s: B = None
        self.y: B = None
        self.v: E = None
        self.q: A = None
        self.t: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: B = None
        self.z: C = None
        self.s: C = None
        self.v: C = None
        self.o: E = None
        self.x: A = None
        self.txt = txt

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

h = A("h")
f = B("f")
b = C("b")
d = D("d")
e = E("e")
a = F("a")
g = G("g")
k = H("k")
j = I("j")

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: I = None
        self.x: I = None
        self.o: B = None
        self.p: A = None
        self.t: A = None
        self.v: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: B = None
        self.s: B = None
        self.y: B = None
        self.v: E = None
        self.q: A = None
        self.t: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: B = None
        self.z: C = None
        self.s: C = None
        self.v: C = None
        self.o: E = None
        self.x: A = None
        self.txt = txt

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

h = A("h")
f = B("f")
b = C("b")
d = D("d")
e = E("e")
a = F("a")
g = G("g")
k = H("k")
j = I("j")

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