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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: C = None
        self.z: I = None
        self.u: G = None
        self.x: H = None
        self.o: B = None
        self.s: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: A = None
        self.t: C = None
        self.p: E = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: I = None
        self.x: D = None
        self.s: H = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: C = None
        self.z: I = None
        self.u: G = None
        self.x: H = None
        self.o: B = None
        self.s: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: A = None
        self.t: C = None
        self.p: E = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: I = None
        self.x: D = None
        self.s: H = None
        self.txt = txt

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

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

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

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