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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: F = None
        self.p: J = None
        self.x: H = None
        self.w: E = None
        self.r: G = None
        self.z: I = None
        self.q: E = None
        self.v: G = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: D = None
        self.s: H = None
        self.q: I = None
        self.r: H = None
        self.v: F = None
        self.p: G = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: D = None
        self.u: D = None
        self.p: D = None
        self.z: H = None
        self.v: C = None
        self.t: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: F = None
        self.y: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: F = None
        self.p: J = None
        self.x: H = None
        self.w: E = None
        self.r: G = None
        self.z: I = None
        self.q: E = None
        self.v: G = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: D = None
        self.s: H = None
        self.q: I = None
        self.r: H = None
        self.v: F = None
        self.p: G = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: D = None
        self.u: D = None
        self.p: D = None
        self.z: H = None
        self.v: C = None
        self.t: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: F = None
        self.y: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: C = None
        self.txt = txt

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

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

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