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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: H = None
        self.z: F = None
        self.x: C = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: I = None
        self.p: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.w: C = None
        self.s: G = None
        self.r: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: H = None
        self.z: F = None
        self.x: C = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: I = None
        self.p: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.w: C = None
        self.s: G = None
        self.r: F = None
        self.txt = txt

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

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

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