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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: B = None
        self.v: G = None
        self.w: A = None
        self.y: A = None
        self.r: F = None
        self.x: B = None
        self.q: A = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: D = None
        self.o: G = None
        self.y: J = None
        self.w: F = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: A = None
        self.x: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: A = None
        self.u: I = None
        self.p: J = None
        self.v: B = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: H = None
        self.u: C = None
        self.p: J = None
        self.v: D = None
        self.o: E = None
        self.t: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: I = None
        self.q: B = None
        self.r: F = None
        self.s: A = None
        self.t: A = None
        self.v: B = None
        self.y: C = None
        self.w: E = None
        self.txt = txt

e = A("e")
i = B("i")
b = C("b")
g = D("g")
h = E("h")
k = F("k")
j = G("j")
d = H("d")
c = I("c")
f = J("f")

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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: B = None
        self.v: G = None
        self.w: A = None
        self.y: A = None
        self.r: F = None
        self.x: B = None
        self.q: A = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: D = None
        self.o: G = None
        self.y: J = None
        self.w: F = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: A = None
        self.x: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: A = None
        self.u: I = None
        self.p: J = None
        self.v: B = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: H = None
        self.u: C = None
        self.p: J = None
        self.v: D = None
        self.o: E = None
        self.t: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: I = None
        self.q: B = None
        self.r: F = None
        self.s: A = None
        self.t: A = None
        self.v: B = None
        self.y: C = None
        self.w: E = None
        self.txt = txt

e = A("e")
i = B("i")
b = C("b")
g = D("g")
h = E("h")
k = F("k")
j = G("j")
d = H("d")
c = I("c")
f = J("f")

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