class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: C = None
        self.o: H = None
        self.p: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: H = None
        self.v: C = None
        self.s: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: H = None
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: E = None
        self.t: G = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: H = None
        self.v: C = None
        self.s: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: H = None
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: E = None
        self.t: G = None
        self.w: C = None
        self.txt = txt

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

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