class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: B = None
        self.s: E = None
        self.z: G = None
        self.x: C = None
        self.v: H = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: C = None
        self.w: E = None
        self.y: E = None
        self.z: E = None
        self.o: C = None
        self.s: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: C = None
        self.q: C = None
        self.s: C = None
        self.u: C = None
        self.r: H = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: E = None
        self.q: B = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: H = None
        self.u: E = None
        self.w: E = None
        self.q: E = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: F = None
        self.r: B = None
        self.txt = txt

g = A("g")
i = B("i")
k = C("k")
e = D("e")
c = E("c")
h = F("h")
l = G("l")
d = H("d")

g.o = k
g.x = k
g.p = i
g.w = i
g.s = c
g.z = l
g.v = d
i.v = e
i.r = k
i.o = k
i.w = c
i.y = c
i.z = c
i.s = h
k.x = l
k.t = d
e.t = c
e.w = c
e.y = k
e.q = k
e.s = k
e.u = k
e.r = d
c.y = d
h.r = c
h.z = c
h.q = i
h.o = l
l.x = h
l.r = d
l.u = c
l.w = c
l.q = c
l.v = c
d.v = g
d.q = h
d.r = i
assert g.x.t.v.w.txt == "
class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: B = None
        self.s: E = None
        self.z: G = None
        self.x: C = None
        self.v: H = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: C = None
        self.w: E = None
        self.y: E = None
        self.z: E = None
        self.o: C = None
        self.s: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: C = None
        self.q: C = None
        self.s: C = None
        self.u: C = None
        self.r: H = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: E = None
        self.q: B = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: H = None
        self.u: E = None
        self.w: E = None
        self.q: E = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: F = None
        self.r: B = None
        self.txt = txt

g = A("g")
i = B("i")
k = C("k")
e = D("e")
c = E("c")
h = F("h")
l = G("l")
d = H("d")

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