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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: H = None
        self.t: B = None
        self.r: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: I = None
        self.u: E = None
        self.s: C = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: H = None
        self.s: A = None
        self.p: D = None
        self.r: E = None
        self.q: D = None
        self.w: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: H = None
        self.t: B = None
        self.r: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: I = None
        self.u: E = None
        self.s: C = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: H = None
        self.s: A = None
        self.p: D = None
        self.r: E = None
        self.q: D = None
        self.w: E = None
        self.txt = txt

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

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