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

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: G = None
        self.t: E = None
        self.v: G = None
        self.r: F = None
        self.p: G = None
        self.z: C = None
        self.s: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: I = None
        self.s: G = None
        self.z: E = None
        self.p: G = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: C = None
        self.q: H = None
        self.r: C = None
        self.y: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: G = None
        self.t: E = None
        self.v: G = None
        self.r: F = None
        self.p: G = None
        self.z: C = None
        self.s: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: I = None
        self.s: G = None
        self.z: E = None
        self.p: G = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: C = None
        self.q: H = None
        self.r: C = None
        self.y: F = None
        self.txt = txt

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

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