class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: B = None
        self.v: G = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: A = None
        self.p: A = None
        self.q: G = None
        self.t: H = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

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

i = A("i")
c = B("c")
g = C("g")
l = D("l")
e = E("e")
f = F("f")
j = G("j")
h = H("h")
n = C("n")

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: A = None
        self.p: A = None
        self.q: G = None
        self.t: H = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

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

i = A("i")
c = B("c")
g = C("g")
l = D("l")
e = E("e")
f = F("f")
j = G("j")
h = H("h")
n = C("n")

i.t = j
i.v = j
i.s = c
i.u = g
c.w = j
c.q = j
c.s = j
c.v = i
c.p = i
c.t = h
g.w = h
g.r = c
g.p = c
g.u = j
g.s = j
g.x = e
g.o = n
l.w = g
l.q = f
l.t = c
e.y = i
e.p = n
f.o = j
f.r = e
f.x = e
f.p = l
f.y = l
f.v = c
j.w = c
h.o = j
h.x = n
n.w = h
n.r = c
n.p = c
n.u = j
n.s = j
n.x = e
n.o = g
assert i.t.w.s.w.p.u.x.y.txt == "i"