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

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: J = None
        self.o: G = None
        self.r: A = None
        self.x: J = None
        self.u: I = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: I = None
        self.z: C = None
        self.y: G = None
        self.o: A = None
        self.x: J = None
        self.u: C = None
        self.q: C = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: H = None
        self.u: J = None
        self.x: B = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: J = None
        self.z: B = None
        self.u: B = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: E = None
        self.u: B = None
        self.x: C = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: B = None
        self.w: B = None
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: F = None
        self.u: B = None
        self.t: A = None
        self.q: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: C = None
        self.p: I = None
        self.o: C = None
        self.v: H = None
        self.q: I = None
        self.x: C = None
        self.txt = txt

h = A("h")
c = B("c")
i = C("i")
b = D("b")
l = E("l")
n = F("n")
e = G("e")
a = H("a")
d = I("d")
g = J("g")

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

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: J = None
        self.o: G = None
        self.r: A = None
        self.x: J = None
        self.u: I = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: I = None
        self.z: C = None
        self.y: G = None
        self.o: A = None
        self.x: J = None
        self.u: C = None
        self.q: C = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: H = None
        self.u: J = None
        self.x: B = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: J = None
        self.z: B = None
        self.u: B = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: E = None
        self.u: B = None
        self.x: C = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: B = None
        self.w: B = None
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: F = None
        self.u: B = None
        self.t: A = None
        self.q: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: C = None
        self.p: I = None
        self.o: C = None
        self.v: H = None
        self.q: I = None
        self.x: C = None
        self.txt = txt

h = A("h")
c = B("c")
i = C("i")
b = D("b")
l = E("l")
n = F("n")
e = G("e")
a = H("a")
d = I("d")
g = J("g")

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