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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: A = None
        self.t: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

j = A("j")
h = B("h")
m = C("m")
k = D("k")
a = E("a")
n = F("n")
e = G("e")
d = F("d")
l = C("l")
f = F("f")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: A = None
        self.t: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

j = A("j")
h = B("h")
m = C("m")
k = D("k")
a = E("a")
n = F("n")
e = G("e")
d = F("d")
l = C("l")
f = F("f")

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