class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: D = None
        self.p: I = None
        self.o: D = None
        self.r: B = None
        self.v: C = None
        self.u: D = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: A = None
        self.x: A = None
        self.w: C = None
        self.y: A = None
        self.v: B = None
        self.s: D = None
        self.txt = txt

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

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

d.t = j
d.v = j
d.q = j
d.w = h
d.o = h
d.u = h
d.p = n
d.r = e
e.r = n
e.q = d
e.z = d
e.y = g
e.u = g
e.x = j
e.t = l
j.o = n
j.z = n
j.t = h
j.v = l
j.u = g
j.w = g
j.p = d
j.s = k
h.o = l
h.u = l
h.r = d
h.x = g
h.t = g
h.y = e
h.q = j
b.t = l
b.w = h
b.x = h
b.z = h
b.s = h
b.o = e
b.p = n
b.v = k
b.r = d
g.u = d
g.w = d
g.t = k
g.q = k
g.p = e
l.r = k
k.q = h
k.s = h
k.z = d
k.x = d
k.y = d
k.w = j
k.v = e
n.x = j
n.s = k
assert j.s.z.q.w.t.s.t.txt == "
class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: D = None
        self.p: I = None
        self.o: D = None
        self.r: B = None
        self.v: C = None
        self.u: D = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: A = None
        self.x: A = None
        self.w: C = None
        self.y: A = None
        self.v: B = None
        self.s: D = None
        self.txt = txt

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

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

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