class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: F = None
        self.y: F = None
        self.t: H = None
        self.z: G = None
        self.w: F = None
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: D = None
        self.o: D = None
        self.r: H = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: D = None
        self.x: H = None
        self.r: C = None
        self.p: H = None
        self.y: H = None
        self.o: C = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: E = None
        self.q: F = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: D = None
        self.o: D = None
        self.r: H = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: D = None
        self.x: H = None
        self.r: C = None
        self.p: H = None
        self.y: H = None
        self.o: C = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: E = None
        self.q: F = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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