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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: F = None
        self.u: A = None
        self.w: A = None
        self.s: D = None
        self.y: C = None
        self.txt = txt

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

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

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

g = A("g")
b = B("b")
n = C("n")
j = D("j")
f = E("f")
i = F("i")
d = B("d")
k = A("k")
a = C("a")

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: F = None
        self.u: A = None
        self.w: A = None
        self.s: D = None
        self.y: C = None
        self.txt = txt

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

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

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

g = A("g")
b = B("b")
n = C("n")
j = D("j")
f = E("f")
i = F("i")
d = B("d")
k = A("k")
a = C("a")

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