class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: D = None
        self.z: G = None
        self.u: C = None
        self.q: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: D = None
        self.x: D = None
        self.o: F = None
        self.u: A = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: E = None
        self.s: E = None
        self.v: G = None
        self.r: E = None
        self.u: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: D = None
        self.z: G = None
        self.u: C = None
        self.q: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: D = None
        self.x: D = None
        self.o: F = None
        self.u: A = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: E = None
        self.s: E = None
        self.v: G = None
        self.r: E = None
        self.u: A = None
        self.txt = txt

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

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