class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: F = None
        self.q: F = None
        self.v: D = None
        self.r: G = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: G = None
        self.w: D = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: E = None
        self.t: H = None
        self.z: G = None
        self.s: B = None
        self.x: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: B = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: B = None
        self.s: B = None
        self.t: A = None
        self.x: B = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: D = None
        self.v: H = None
        self.z: E = None
        self.r: A = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: A = None
        self.o: A = None
        self.q: A = None
        self.t: F = None
        self.y: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: G = None
        self.w: D = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: E = None
        self.t: H = None
        self.z: G = None
        self.s: B = None
        self.x: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: B = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: B = None
        self.s: B = None
        self.t: A = None
        self.x: B = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: D = None
        self.v: H = None
        self.z: E = None
        self.r: A = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: A = None
        self.o: A = None
        self.q: A = None
        self.t: F = None
        self.y: B = None
        self.txt = txt

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

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