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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: H = None
        self.v: D = None
        self.t: A = None
        self.o: H = None
        self.r: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: H = None
        self.w: H = None
        self.t: A = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: H = None
        self.v: D = None
        self.t: A = None
        self.o: H = None
        self.r: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: H = None
        self.w: H = None
        self.t: A = None
        self.txt = txt

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

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