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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: B = None
        self.v: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: B = None
        self.v: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: E = None
        self.txt = txt

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

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