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

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: E = None
        self.o: G = None
        self.z: F = None
        self.u: I = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: I = None
        self.v: I = None
        self.y: D = None
        self.w: D = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: E = None
        self.o: G = None
        self.z: F = None
        self.u: I = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: I = None
        self.v: I = None
        self.y: D = None
        self.w: D = None
        self.txt = txt

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

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

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

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