{"size": 403, "ext": "js", "max_stars_repo_path": "js/utopian-tree.js", "max_stars_repo_name": "madhavajay/hr-7days-javascript", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/utopian-tree.js", "max_issues_repo_name": "madhavajay/hr-7days-javascript", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/utopian-tree.js", "max_forks_repo_name": "madhavajay/hr-7days-javascript", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.1904761905, "max_line_length": 35, "alphanum_fraction": 0.5583126551}
/* jshint node: true */
'use strict';

function processData(input) {
	var lines = input.split('\n');
	var cases = parseInt(lines[0]);
	for(var i = 1; i <= cases; i++) {
		var height = 1;
		var cycles = parseInt(lines[i]);
		for(var x = 0; x < cycles; x++) {
			if (x % 2 === 0) {
				height = height * 2;
			} else {
				++height;
			}
		}
		console.log(height);
	}
}

exports.processData = processData;