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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: I = None
        self.x: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: G = None
        self.w: B = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: J = None
        self.x: A = None
        self.v: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: E = None
        self.p: H = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: G = None
        self.q: A = None
        self.u: C = None
        self.t: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: I = None
        self.x: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: G = None
        self.w: B = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: J = None
        self.x: A = None
        self.v: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: E = None
        self.p: H = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: G = None
        self.q: A = None
        self.u: C = None
        self.t: F = None
        self.txt = txt

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

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

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

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