🏑 index : github.com/captn3m0/codechef.git

---
category_name: easy
problem_code: PLZLYKME
problem_name: 'Please like me'
languages_supported:
    - ADA
    - ASM
    - BASH
    - BF
    - C
    - 'C99 strict'
    - CAML
    - CLOJ
    - CLPS
    - 'CPP 4.3.2'
    - 'CPP 4.9.2'
    - CPP14
    - CS2
    - D
    - ERL
    - FORT
    - FS
    - GO
    - HASK
    - ICK
    - ICON
    - JAVA
    - JS
    - 'LISP clisp'
    - 'LISP sbcl'
    - LUA
    - NEM
    - NICE
    - NODEJS
    - 'PAS fpc'
    - 'PAS gpc'
    - PERL
    - PERL6
    - PHP
    - PIKE
    - PRLG
    - PYTH
    - 'PYTH 3.4'
    - RUBY
    - SCALA
    - 'SCM guile'
    - 'SCM qobi'
    - ST
    - TCL
    - TEXT
    - WSPC
max_timelimit: '1'
source_sizelimit: '50000'
problem_author: kaushik_iska
problem_tester: gerald
date_added: 8-12-2013
tags:
    - jan14
    - kaushik_iska
    - programming
    - simple
editorial_url: 'http://discuss.codechef.com/problems/PLZLYKME'
time:
    view_start_date: 1389605400
    submit_start_date: 1389605400
    visible_start_date: 1389605400
    end_date: 1735669800
    current: 1493558174
layout: problem
---
All submissions for this problem are available.###  Read problems statements in [Mandarin Chinese](http://www.codechef.com/download/translated/JAN14/mandarin/PLZLYKME.pdf) and [Russian](http://www.codechef.com/download/translated/JAN14/russian/PLZLYKME.pdf).

 In a far away dystopian world, the measure of the quality of a person’s life is the numbers of likes he gets for an article about their life. For a person to stay alive, he has to acquire at least **L** number of likes before **D** days pass.

 People in this world employ various techniques to increase the number of likes. One of the famous ones is to dis-like and re-like their own article once per day. On doing so you can assume that the number of likes for the post increase by a constant factor **C**.

So if one starts with **S** likes on Day-1, he would have **D2** = **S + C \* S** likes on Day-2, **D3 = D2 + D2 \* C** on Day-3 etc. You are to answer if the person would survive at the end of Day-D or not.

 **Input**

 First line contains a single positive integer **T** denoting the number of test cases. The following **T** lines represent a test case each. Each test case contains 4 space-separated integers **L, D, S and C**.

 **Output**

For each test case, print a single line containing β€œ**ALIVE AND KICKING**” if the person would live, otherwise print, β€œ**DEAD AND ROTTING**”.

 **Constraints**

**1 <= T <= 1000**

**1 <= L <= 1000000000**

**1 <= D <= 1000000000**

**1 <= S <= 1000000000**

**1 <= C <= 1000000000**

**Sample cases:**
/>

<pre>
<b>Input</b>
2
5 1 5 1
10 2 2 2

<b>Output</b>
ALIVE AND KICKING
DEAD AND ROTTING
</pre>**Explanation**

In the first case by the end of Day-1 we would be having **S** that is **5** number of likes, as it is β‰₯ **L**, the answer is **ALIVE AND KICKING**.

In the second case, **D2 =S + C\*S**, therefore **D2 = 2 + 2 \* 2 = 6**, as 6 is less than 10, the answer is **DEAD AND ROTTING**. />